Stroke
class Stroke(val fill: Paint = ColorPaint(Black), val thickness: Double = 1.0, val dashes: DoubleArray? = null, val dashOffset: Double = 0.0, val lineJoint: Stroke.LineJoint? = null, val lineCap: Stroke.LineCap? = null)
Strokes are used to outline regions when drawing shapes on a Canvas.
Author
Nicholas Eddy
Parameters
fill
that paints the outline
thickness
of outline
dashes
if lines are segmented
dashOffset
of the dashes
Constructors
Link copied to clipboard
constructor(fill: Paint = ColorPaint(Black), thickness: Double = 1.0, dashes: DoubleArray? = null, dashOffset: Double = 0.0, lineJoint: Stroke.LineJoint? = null, lineCap: Stroke.LineCap? = null)