<svg ... onload="top.load(evt)" ...>
<rect x="20" y="20" width="100" height="20" style="fill:red"/>
function keydown(evt) { . . . switch (keyCode) { . . . case "Z".charCodeAt(0): . . . } . . . }
if (player.isOnPlatform()) {
Set the player vertical speed
}
<g onclick="the code to run when clicked" transform="translate to a proper position"> <rect x="0" y="0" width="140" height="40" style="fill:white;stroke:red;stroke-width:2" /> <text x="70" y="28" style="fill:red;font-size:25px;text-anchor:middle">Zoom</text> </g>
![]() |
⇨ | ![]() |
transform="scale(2.0)"
![]() |
⇨ | ![]() |
setAttribute("transform", "translate(" + tx + ", " + ty + ") scale(" + sx + "," + sy + ")");