This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void drawImage( | |
(HTMLImageElement or HTMLCanvasElement or HTMLVideoElement) image | |
,unrestricted double destinationX | |
,unrestricted double destinationY | |
); | |
void drawImage( | |
(HTMLImageElement or HTMLCanvasElement or HTMLVideoElement) image | |
,unrestricted double destinationX | |
,unrestricted double destinationY | |
,unrestricted double destinationW |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lastTime; | |
function render (time) { | |
if (! lastTime) { | |
lastTime = time; | |
} | |
var delta = time - lastTime; | |
actor.update(delta); | |
ctx.drawImage( |
OlderNewer