stroke

fun Color.stroke(thickness: Double): Stroke

Creates a new Stroke with thickness from the given Color.

Parameters

thickness

of the stroke


fun Paint.stroke(thickness: Double): Stroke

Creates a new Stroke with thickness from the given Paint.

Parameters

thickness

of the stroke


Creates a new Stroke with defaults from the given Color.


Creates a new Stroke with defaults from the given Paint.