Raw
fun Raw(pts: Array<Point>, verbs: Array<PathVerb>, conicWeights: FloatArray = FloatArray(0), fillType: PathFillMode = PathFillMode.WINDING, isVolatile: Boolean = false): Path
Creates a new path with the specified spans.
The points and weights arrays are read in order, based on the sequence of verbs.
Move 1 point
Line 1 point
Quad 2 points
Conic 2 points and 1 weight
Cubic 3 points
Close 0 points
If an illegal sequence of verbs is encountered, or the specified number of points or weights is not sufficient given the verbs, an empty Path is returned.
A legal sequence of verbs consists of any number of Contours. A contour always begins with a Move verb, followed by 0 or more segments: Line, Quad, Conic, Cubic, followed by an optional Close.
Return
new Path constructed from the provided data
Parameters
pts
array of points
verbs
array of path verbs
conicWeights
array of conic weights
fillType
fill type for the path
isVolatile
whether the path is volatile