DemoSpline stores drawings as a top-level subpaths array. Each subpath
contains a closed flag and a pts array.
{
"subpaths": [
{
"closed": false,
"pts": [
{ "x": 0.0, "y": 0.0, "c": 0 },
{ "x": 50.0, "y": 20.0, "c": 1, "t": 0.35 },
{ "x": 100.0, "y": 0.0, "c": 0, "l": 2.8, "r": 0.1 }
]
}
]
}
x, y: point coordinatesc: point kind, where 1 means smooth and 0 means cornert: shared tangent for smooth pointsl, r: explicit left and right tangents for corner pointst into both LTh and RTh.l or r independently.This format is specific to the sample application rather than the reusable library package.