nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

Feature: Catmull-Rom curves

Open c-mendoza opened this issue 7 years ago • 0 comments

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.

c-mendoza avatar Feb 23 '18 14:02 c-mendoza