Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var shape = new nme.display.Shape();
  2. var g = shape.graphics;
  3. g.beginFill( 0xf09900 );
  4. g.lineStyle(1,0x000000);
  5.  
  6. //g.drawRect(8,8,280,280);
  7. g.drawCircle(100, 100, 50);
  8. g.moveTo(32,32);
  9. g.lineTo(128,128);
  10. g.endFill();
  11.  
  12. g.beginFill(0x00FF00);
  13. g.moveTo(100, 300);
  14. g.lineStyle(1, 0x000000);
  15. g.lineTo(100, 350);
  16. g.curveTo(150, 275, 300, 325);
  17. g.curveTo(150, 375, 100, 300);
  18. g.endFill();
  19.  
  20. var bmp = new BitmapData(464,464,true, 0x00000000 );
  21. bmp.draw(shape);
  22. var b=new Bitmap(bmp);
  23.  
  24. attachImageToHUD(new BitmapWrapper(b), 0,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement