1

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.

AturSams
  • 7,568
  • 18
  • 64
  • 98

2 Answers2

2

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

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

Kodiak
  • 5,978
  • 17
  • 35