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.
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.