StarlingGraphics / Starling-Extension-Graphics

flash.display.Graphics style extension for the Starling Flash GPU rendering framework
https://github.com/StarlingGraphics/Starling-Extension-Graphics/wiki
MIT License
285 stars 88 forks source link

Cubics! #4

Closed leethomason closed 12 years ago

leethomason commented 12 years ago

Reworked the quadratic code to also support cubic curves, cubicCurveTo(). The bezier equation used is transparent to the subdivision scheme, which is nice if we ever want to further tune the subdivision algorithm. Other than the code clean up, cubic support itself is surprisingly simple.