Created
November 30, 2018 15:32
-
-
Save jefBinomed/ad002053259fc2f226f477d848a84704 to your computer and use it in GitHub Desktop.
2018-countdown-canvas
This file contains 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
context = canvas.getContext('2d'); | |
context.drawImage(imgSource //Source image | |
, sx //sx clipping of source image | |
, sy //sy clipping of source image | |
, sw // swidth clipping of source image | |
, sh // sheight clipping of source image | |
, dx // x coordinate of drawing on canvas | |
, dy // y coordinate of drawing on canvas | |
, dw // width size of the drawing | |
, dh // height size of the drawing | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment