smoothie 0.0.4 smoothie: ^0.0.4 copied to clipboard
Create and sample a cmooth bezier curve going through a given set of points
smoothie #
Create and sample a smooth bezier curve going through a given set of points
Usage #
Let's say you have some arbitrary data (a list of points):
var _originalDataSeries = <Point>[
Point(0, 5),
Point(3, 15),
Point(5, 10),
Point(6, 6),
Point(9, 13),
];
Define a number of sampling points per original point:
int _samplesPerPoint = 10;
Create a smooth curve:
var _sampledCurve = Smoothie().getSampledCurve(_samplesPerPoint, _originalDataSeries);