Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var shape = new nme.display.Shape();
  2. var g = shape.graphics;
  3. g.beginFill( 0xffa900 );
  4. g.lineStyle(1,0x000000);
  5.  
  6. g.drawRect(8,8,280,280);
  7. g.moveTo(32,32);
  8. g.lineTo(128,128);
  9. g.endFill();
  10. var bmp = new BitmapData(64,64,true, 0x00000000 );
  11. bmp.draw(shape);
  12. var b=new Bitmap(bmp);
  13.  
  14. attachImageToHUD(new BitmapWrapper(b), 0,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement