type
Stroke
src
@Js
@Serializable { simple=true }
const class Stroke : Obj
Stroke defines the how to render shape outlines.
constructors
fromStr |
Parse from string format |
---|---|
make |
Make with an it-block |
makeFields |
Make with fields |
fields
cap |
How to render line end caps. |
---|---|
dash |
Dash pattern as space/comma separated numbers of dashes and gaps. |
defVal |
Default value is width 1, no dash, butt cap, miter join. |
join |
How to render line joins. |
none |
Value with width of zero |
width |
Stroke width. |
methods
equals |
Equality is based on fields |
---|---|
hash |
Hash is based on fields |
isNone |
Is the width set to zero |
toSize |
Return this stroke with different width. |
toStr |
Return string format - see |
Slot Details
cap
dash
defVal
equals
fromStr
hash
isNone
join
src
const StrokeJoin join := StrokeJoin.miter
How to render line joins. Default is miter.
make
makeFields
src
new makeFields(Float width := 1.0f, Str? dash := null, StrokeCap cap := StrokeCap.butt, StrokeJoin join := StrokeJoin.miter)
Make with fields