Skip to content

Instantly share code, notes, and snippets.

@jefBinomed
Created November 30, 2018 15:32
Show Gist options
  • Save jefBinomed/ad002053259fc2f226f477d848a84704 to your computer and use it in GitHub Desktop.
Save jefBinomed/ad002053259fc2f226f477d848a84704 to your computer and use it in GitHub Desktop.
2018-countdown-canvas
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