Stroke

data class Stroke(val color: Color, val width: Float, val cap: Paint.Stroke.Cap = Cap.Butt, val join: Paint.Stroke.Join = Join.Miter(), val dash: Paint.Stroke.Dash = Dash.None) : Paint

Draws a color around the outside of a shape.

Constructors

Link copied to clipboard
constructor(color: Color, width: Float, cap: Paint.Stroke.Cap = Cap.Butt, join: Paint.Stroke.Join = Join.Miter(), dash: Paint.Stroke.Dash = Dash.None)

Types

Link copied to clipboard

Shape behavior for end of a line.

Link copied to clipboard
sealed class Dash
Link copied to clipboard
sealed class Join

Shape behavior for the corners in a poly-line.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Paint.toAndroid(context: Context): Paint

Converts a Krayon Paint into an AndroidPaint.