perfect_freehand library
Classes
- Point
- PointVector
- StrokeEasings
- StrokeEndOptions
- Stroke options for the start/end of the line.
- StrokeOptions
- The options object for getStroke or getStrokePoints.
- StrokePoint
- The points returned by getStrokePoints and the input for getStrokeOutlinePoints.
Constants
- fixedPi → const double
- rateOfPressureChange → const double
Functions
-
getStroke(
List< PointVector> points, {StrokeOptions? options, bool rememberSimulatedPressure = false}) → List<Offset> - Get an array of points describing a polygon that surrounds the input points.
-
getStrokeOutlinePoints(
List< StrokePoint> points, {required StrokeOptions options, bool rememberSimulatedPressure = false}) → List<Offset> - Get an array of points representing the outline of a stroke.
-
getStrokePoints(
List< PointVector> points, {required StrokeOptions options}) → List<StrokePoint> - Get an array of points as objects with an adjusted point, pressure, vector, distance, and runningLength.