Skip to content

Instantly share code, notes, and snippets.

@EbbeVang
Created November 5, 2018 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EbbeVang/f3e0ce44be7aebec82fbd55402a85580 to your computer and use it in GitHub Desktop.
Save EbbeVang/f3e0ce44be7aebec82fbd55402a85580 to your computer and use it in GitHub Desktop.
js - use draw
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,150,75);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment