Oh Lucy! You got some splinin' to do!
Feb. 24th, 2012 07:22 pmDo any of you understand splines well? Specifically Cubic B-Curves?
I have some data that I'm trying to render in SVG. My data looks like this:
- Curve type (in this case, Cubic B-Spline)
- Resolution (as a float)
- A start parameter (float) and an end parameter (float)
- An array of points (float x and float y)
I'm trying to figure out how to represent this information as an SVG path. Specifically, SVG uses "control points" to indicate how the curve is formed. But I don't understand these curves well enough to figure out the math.
(no subject)
Date: 2012-02-25 06:45 am (UTC)