Created
July 4, 2012 09:19
-
-
Save eladb/3046303 to your computer and use it in GitHub Desktop.
cantest - hello-2.js
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
// a simple drawing function | |
module.exports = function(ctx) { | |
ctx.fillStyle = 'red'; | |
ctx.fillRect(10, 10, 100, 100); | |
ctx.fillStyle = 'blue'; | |
ctx.fillRect(20, 20, 90, 90); // make inner box bigger | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment