perfect_freehand library

Classes

Point
A point with an x and y coordinate and a pressure.

Functions

getStroke(List<Point> points, {double size = 16, double thinning = 0.7, double smoothing = 0.5, double streamline = 0.5, double taperStart = 0.0, double taperEnd = 0.0, bool capStart = true, bool capEnd = true, bool simulatePressure = true, bool isComplete = false}) List<Point>
Get an array of points describing a polygon that surrounds the input points.
getStrokeOutlinePoints(List<StrokePoint> points, {double size = 16, double thinning = 0.7, double smoothing = 0.5, double streamline = 0.5, double taperStart = 0.0, double taperEnd = 0.0, bool capStart = true, bool capEnd = true, bool simulatePressure = true, bool isComplete = false}) List<Point>
Get an array of points representing the outline of a stroke, based on the provided points. Used internally by getStroke but possibly of separate interest. Accepts the result of getStrokeOutlinePoints.
getStrokePoints(List<Point> points, {double size = 16, double thinning = 0.7, double smoothing = 0.5, double streamline = 0.5, double taperStart = 0.0, double taperEnd = 0.0, bool capStart = true, bool capEnd = true, bool simulatePressure = true, bool isComplete = false}) List<StrokePoint>
Get an array of points as objects with an adjusted point, pressure, vector, distance, and runningLength for the provided points. Used internally by getStroke but possibly of separate interest. Can be passed to getStrokeOutlinePoints.