path

fun path(data: String): Path?

Creates a Path from the path data string.

Return

the path, or null if data is blank

Parameters

data

conforming to https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#Path_commands


fun path(from: Point): PathBuilder

Creates a Path at the given point and a builder to further define it.

Return

a builder to continue defining the path

Parameters

from

the starting point of the path


Creates a Path at the given x,y and a builder to further define it.

Return

a builder to continue defining the path

Parameters

x

the starting x of the path

y

the starting y of the path

See also