Companion

object Companion

Functions

Link copied to clipboard
fun arc(center: Point, radius: Float, startDegrees: Float, endDegrees: Float, clockwise: Boolean = true): Shape

An arc shape that can be drawn on a Canvas.

Link copied to clipboard
fun circle(center: Point, radius: Float): Shape

A closed circle that can be drawn on a Canvas.

Link copied to clipboard
fun ellipse(topLeft: Point, size: Size): Shape

A closed ellipse that can be drawn on a Canvas.

Link copied to clipboard
fun line(startPoint: Point, endPoint: Point): Shape

A line segment with the specified start and stop x,y coordinates that can be drawn on a Canvas.

Link copied to clipboard
fun path(path: Path): Shape

A path which contains a mathematical description of shapes or lines to be drawn on a Canvas.

Link copied to clipboard
fun rect(topLeft: Point, size: Size, cornerRadius: Float = 0.0f): Shape

A closed (optionally) round-rectangle that can be drawn on a Canvas.