1
votes

I am currently using the native .curveTo function and wondering if I could write some code that will render Quadratic Bezier Curves in Stage3D? I also may need to perform fills between the curves I draw to the screen.

2

2 Answers

2
votes

Fills are supported by the extension

https://github.com/unwrong/Starling-Extension-Graphics/blob/master/extension/src/starling/display/graphics/Fill.as

It uses a triangulator under the hood to process the fill into something the GPU can handle.

1
votes

It has already been implemented for Starling. Hope you'll find it useful: https://github.com/unwrong/Starling-Extension-Graphics/pull/1