Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var shape = new nme.display.Shape();
- var g = shape.graphics;
- g.beginFill( 0xf09900 );
- g.lineStyle(1,0x000000);
- //g.drawRect(8,8,280,280);
- g.drawCircle(100, 100, 50);
- g.moveTo(32,32);
- g.lineTo(128,128);
- g.endFill();
- g.beginFill(0x00FF00);
- g.moveTo(100, 300);
- g.lineStyle(1, 0x000000);
- g.lineTo(100, 350);
- g.curveTo(150, 275, 300, 325);
- g.curveTo(150, 375, 100, 300);
- g.endFill();
- var bmp = new BitmapData(464,464,true, 0x00000000 );
- bmp.draw(shape);
- var b=new Bitmap(bmp);
- attachImageToHUD(new BitmapWrapper(b), 0,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement