mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
EaselJS updated definitions and tests
This commit is contained in:
1 parent
c4f4eb9b84
commit
bbaed9d9f8
2 files changed
+188
-15
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user