InsaneHero Posted July 17, 2014 Share Posted July 17, 2014 Just a FYI: Line drawing fails if you mix it with other graphics commands. The code snippet below will draw the circles but the lines vanish. Simple fix is to draw the lines then iterate again to draw the circles, but this combined drawing should work too. graphics.lineStyle(1, 0xffffff, 1); for (var i = 0; i < c.control.length; i++) { var x = control[i].x; var y = control[i].y; if (i == 0) { graphics.moveTo(x, y); } else { graphics.lineTo(x, y); } graphics.beginFill(0xafafaf); graphics.drawEllipse(x, y, 3, 3); graphics.endFill(); } Link to comment Share on other sites More sharing options...
lewster32 Posted July 17, 2014 Share Posted July 17, 2014 Graphics is handled by pixi, so if you feel this is a bug you should post an issue on pixi's Github page: https://github.com/GoodBoyDigital/pixi.js/ Link to comment Share on other sites More sharing options...
Recommended Posts