Created
April 14, 2011 11:55
-
-
Save mahemoff/919329 to your computer and use it in GitHub Desktop.
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
var pen = new Graphics(); // I find "graphics" vague, so I call it pen! | |
stage = new Stage(canvas); // the display | |
pen.setStrokeStyle(1).drawCircle(0,0,RADIUS); // not really drawn yet | |
circle = new Shape(g); /* AHA now we have an object for the thing we haven't yet really drawn */ | |
stage.addChild(circle); // Now it's drawn | |
// later on, we see the benefits of this cunning display | |
circle.x += 8; // | |
stage.update(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment