Crate freedraw

Crate freedraw 

Source

Structs§

StrokeOptions
The options object for get_stroke or get_stroke_points.
StrokePoint
The points returned by get_stroke_points, and the input for get_stroke_outline_points.
TaperOptions
Options for tapering at the start or end of a stroke

Enums§

InputPoint
Represents an input point with optional pressure
TaperType
Represents either a boolean or a numeric taper value

Functions§

get_stroke
Get an array of points describing a polygon that surrounds the input points.
get_stroke_outline_points
Get an array of points (as [x, y]) representing the outline of a stroke.
get_stroke_points
Get an array of points as objects with an adjusted point, pressure, vector, distance, and running_length.
get_stroke_radius
Compute a radius based on the pressure.
get_svg_path_from_stroke
Converts a stroke’s outline points to an SVG path data string