Tryst::Vector::Shape
One drawn shape within a Surface#draw block - built via Context's #rect/#rounded_rect/#circle, then given a fill and/or stroke. Already added to the frame's canvas by the time a caller gets one back; #fill/#stroke only configure how it renders, not whether it does.
Constructors
@api private - only Context builds these.
Instance methods
A flat fill color. Overwrites any gradient #fill already set - ThorVG itself keeps only the more recent of the two (see tvg_shape_set_gradient's own doc comment).
An outline in a flat color, width logical pixels wide - already
scaled for the Surface's HiDPI factor along with everything else
about this shape (see Context's own doc comment). cap: only
matters on a shape with an open path (Context#arc); harmless to
pass on a closed one (rect/circle/polygon), it just has nothing
to apply to.