EaselJS updated definitions and tests

This commit is contained in:
Boris Yankov committed 2012-11-02 04:14:18 +02:00
1 parent c4f4eb9b84
commit bbaed9d9f8
2 files changed
+188 -15

No files matched your search

+16
View File
@@ -34,4 +34,20 @@ function test_animation() {
Ticker.setFPS(60);
Ticker.addListener(stage);
stage.addChild(bitmapAnimation);
}
function test_graphics() {
var g = new Graphics();
g.setStrokeStyle(1);
g.beginStroke(Graphics.getRGB(0, 0, 0));
g.beginFill(Graphics.getRGB(255, 0, 0));
g.drawCircle(0, 0, 3);
var s = new Shape(g);
s.x = 100;
s.y = 100;
stage.addChild(s);
stage.update();
var myGraphics: Graphics;
myGraphics.beginStroke("#F00").beginFill("#00F").drawRect(20, 20, 100, 50).draw(myContext2D);
}