Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created April 5, 2012 17:14
Show Gist options
  • Save brianleroux/2312587 to your computer and use it in GitHub Desktop.
Save brianleroux/2312587 to your computer and use it in GitHub Desktop.
shipping is the goal; not completeness. occams. etc.
// should render two boxes
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect (10, 10, 55, 50);
ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
ctx.fillRect (30, 30, 55, 50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment