Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main extends Sprite
- {
- public function new() {
- super();
- cacheAsBitmap = true;
- graphics.drawTriangles([10., 10, 10, 20, 15, 15], [0, 1, 2], null, null, [0xFFFF0000, 0xFF00FF00, 0xFF0000FF]);
- }
- static public function main()
- {
- var stage = Lib.current.stage;
- stage.scaleMode = StageScaleMode.NO_SCALE;
- stage.align = StageAlign.TOP_LEFT;
- // entry point
- stage.addChild(new Main() );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment