const class graphics::Stroke
Stroke defines the how to render shape outlines.
const StrokeCap cap := StrokeCap.butt
How to render line end caps. Default is butt.
const Str? dash
Dash pattern as space/comma separated numbers of dashes and gaps. If null then render as solid line.
const static Stroke defVal := makeFields
Default value is width 1, no dash, butt cap, miter join.
Equality is based on fields
Parse from string format:
width [dash] cap join
0.5 2 [1, 2] round radius
virtual override Int hash()
Hash is based on fields
const StrokeJoin join := StrokeJoin.miter
How to render line joins. Default is miter.
new make(|This| f)
Make with an it-block
Make with fields
Return this stroke with different width.
virtual override Str toStr()
Return string format - see
const Float width := 1.0f
Stroke width. Default is 1.