class

NanoSVG::Shape

Inherits Reference < Object

Constructors

Instance methods

bounds

Tight bounding box of the shape [minx,miny,maxx,maxy].

Source
bounds=(bounds : Array(Float32))

Tight bounding box of the shape [minx,miny,maxx,maxy].

Source
fill
Source
fill=(fill : Paint)
Source
fill_gradient_id

Optional 'id' of fill/stroke gradient

Source
fill_gradient_id=(fill_gradient_id : String)

Optional 'id' of fill/stroke gradient

Source
fill_rule
Source
fill_rule=(fill_rule : FillRule)
Source
flags

Logical or of FLAGS_* flags

Source
flags=(flags : UInt8)

Logical or of FLAGS_* flags

Source
id

Optional 'id' attr of the shape or its group

Source
id=(id : String)

Optional 'id' attr of the shape or its group

Source
miter_limit

Miter limit

Source
miter_limit=(miter_limit : Float32)

Miter limit

Source
opacity

Opacity of the shape.

Source
opacity=(opacity : Float32)

Opacity of the shape.

Source
paint_order

Encoded paint order (3x2-bit fields)

Source
paint_order=(paint_order : UInt8)

Encoded paint order (3x2-bit fields)

Source
paths
Source
paths=(paths : Array(Path))
Source
stroke
Source
stroke=(stroke : Paint)
Source
stroke_dash_array

Stroke dash array (scaled).

Source
stroke_dash_array=(stroke_dash_array : Array(Float32))

Stroke dash array (scaled).

Source
stroke_dash_count
Source
stroke_dash_count=(stroke_dash_count : Int32)
Source
stroke_dash_offset

Stroke dash offset (scaled).

Source
stroke_dash_offset=(stroke_dash_offset : Float32)

Stroke dash offset (scaled).

Source
stroke_gradient_id
Source
stroke_gradient_id=(stroke_gradient_id : String)
Source
stroke_line_cap
Source
stroke_line_cap=(stroke_line_cap : LineCap)
Source
stroke_line_join
Source
stroke_line_join=(stroke_line_join : LineJoin)
Source
stroke_width

Stroke width (scaled).

Source
stroke_width=(stroke_width : Float32)

Stroke width (scaled).

Source
visible?
Source
xform

Root transformation for fill/stroke gradient

Source
xform=(xform : Array(Float32))

Root transformation for fill/stroke gradient

Source