Hi @hardcoremore,
I started to play around with this last Friday night, is just an experimentation that has potential, I ported little pieces of the Pixi Graphics lib. Saying that, I did not run any comparison tests, neither I checked before Starling Graphics. But my guess, as its a direct unoptimized port, is that it might be slower and buggy π
I got stuck with the SVG implementation, as it became really complicated eventually.
I will try texture fills today.
Regarding the "bug", I guess my implementation will suffer the same spiky triangle when using lineTo, as mitter line join is, currently, the only implementation available (if I understood you well). If you use, with a small line segment, bezier, quadratic or arcTo drawing curves, the polygon line should be rendered smoothly, regarding performance should be similar as implementing line joins modes (although u have to solve the math for the control points).
Comparison:
var g:Draw = addChild(new Draw()) as Draw;
with (g) {
x = 50, y = 50;
lineStyle(4, 0x0)
.moveTo(0, 0)
.lineTo(100, 100)
.lineTo(200, 100)
.lineTo(100, 50);
}
var g2:Draw = addChild(new Draw()) as Draw;
with (g2) {
x = 250, y = 50;
lineStyle(4, 0x0)
.moveTo(0, 0)
.lineTo(100, 100)
.lineTo(200, 100)
.quadraticCurveTo(200 + 10, 100, 200, 100 - 5)
.lineTo(100, 50);
}