nanovg
nanovg copied to clipboard
Feature: Catmull-Rom curves
New command nvgCurveTo to create Catmull-Rom splines. C-R splines are sometimes easier to use that beziers because they don't require you to supply control points. Added a "curveResolution" property to NVGState to control the amount of detail that the curves are rendered with. Added a "nvg_tesselateCurve" function that creates the points for the curve.