struct

Draw::StrokeStyle

Inherits Struct < Value < Object

StrokeStyle keeps stroke style attributes that is used by the Stroke method of a Drawer

Constructors

new(color : Colorize::Color, width : Float64, line_cap : Draw::LineCap, line_join : Draw::LineJoin, dash_offset : Float64, dash : Array(Float64))
Source

Instance methods

color

Color defines the color of stroke

Source
dash

Array represented dash length pair values are plain dash and impair are space between dash if empty display plain line

Source
dash_offset

Offset of the first dash

Source
line_cap

Line cap style rounded, butt or square

Source
line_join

Line join style bevel, round or miter

Source
width

Line width

Source