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( 0xffa900 );
- g.lineStyle(1,0x000000);
- g.drawRect(8,8,280,280);
- g.moveTo(32,32);
- g.lineTo(128,128);
- g.endFill();
- var bmp = new BitmapData(64,64,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