PathParser.PathDataNode
class PathParser.PathDataNode
Each PathDataNode represents one command in the "d" attribute of the svg file. An array of PathDataNode can represent the whole "d" attribute.
Summary
Public functions |
|
|---|---|
FloatArray<Float> |
|
Char |
getType() |
Unit |
interpolatePathDataNode(The current PathDataNode will be interpolated between the |
Public functions
interpolatePathDataNode
Added in 1.13.0
fun interpolatePathDataNode(
nodeFrom: PathParser.PathDataNode,
nodeTo: PathParser.PathDataNode,
fraction: Float
): Unit
The current PathDataNode will be interpolated between the nodeFrom and nodeTo according to the fraction.
| Parameters | |
|---|---|
nodeFrom: PathParser.PathDataNode |
The start value as a PathDataNode. |
nodeTo: PathParser.PathDataNode |
The end value as a PathDataNode |
fraction: Float |
The fraction to interpolate. |