PathBuilder

interface PathBuilder

Provides a way to create Paths programmatically.

Functions

Link copied to clipboard
open fun arcTo(point: Point, radius: Double, rotation: Measure<Angle> = 0 * degrees, largeArch: Boolean, sweep: Boolean): PathBuilder

Draws a circular curve (described here) from the current point to this one.

abstract fun arcTo(point: Point, xRadius: Double, yRadius: Double, rotation: Measure<Angle> = 0 * degrees, largeArch: Boolean, sweep: Boolean): PathBuilder

Draws an elliptic curve (described here) from the current point to this one.

Link copied to clipboard
abstract fun close(): Path

Closes the path.

Link copied to clipboard
abstract fun cubicTo(point: Point, firstHandle: Point, secondHandle: Point): PathBuilder

Draws a cubic Bézier curve from the current point to this one.

Link copied to clipboard
abstract fun finish(): Path

Finishes path without closing it.

Link copied to clipboard
abstract infix fun lineTo(point: Point): PathBuilder

Draws a line from the current point to this one.

Link copied to clipboard
abstract infix fun moveTo(point: Point): PathBuilder

Moves from the current point to this one.

Link copied to clipboard
abstract fun quadraticTo(point: Point, handle: Point): PathBuilder

Draws a quadratic Bézier curve from the current point to this one.