module

Celestine::Modules::StrokeFill

Gives a drawable access to stroke, fill, and opacity attributes, as well as other related attributes

Instance methods

color

The inherited/inheriting color of the drawable

Source
color=(color : String | Nil)

The inherited/inheriting color of the drawable

Source
color_interpolation

Specifies the color space for gradient interpolations, color animations, and alpha compositing

Source
color_interpolation=(color_interpolation : String | Nil)

Specifies the color space for gradient interpolations, color animations, and alpha compositing

Source
color_interpolation_filters

Specifies the color space for imaging operations performed via filter effects.

Source
color_interpolation_filters=(color_interpolation_filters : String | Nil)

Specifies the color space for imaging operations performed via filter effects.

Source
dash_array

An array representing the amount of units a line should be "on" and "off" for.

An array of [3] will dash the line for 3 units, then off for 3 units, then repeats until the line is finished. An array of [3 3] will dash the line for 3 units, then off for 3 units, then repeats until the line is finished. The same as [3] An array of [4 2] will dash the line for 4 units, then off for 2 units, then repeats until the line is finished. You can add more of these to make much more complicated dashed lines.

Source
dash_array=(dash_array : Array(Float64))

An array representing the amount of units a line should be "on" and "off" for.

An array of [3] will dash the line for 3 units, then off for 3 units, then repeats until the line is finished. An array of [3 3] will dash the line for 3 units, then off for 3 units, then repeats until the line is finished. The same as [3] An array of [4 2] will dash the line for 4 units, then off for 2 units, then repeats until the line is finished. You can add more of these to make much more complicated dashed lines.

Source
dash_offset

The offset to begin dashes on

dash_offset=(dash_offset : IFNumber | Nil)

The offset to begin dashes on

dash_offset_units

What kind of unit dash_offset should use when rendering

dash_offset_units=(dash_offset_units : String | Nil)

What kind of unit dash_offset should use when rendering

fill

The color of the fill

Source
fill=(fill : String | Nil)

The color of the fill

Source
fill_opacity

The opacity of the fill

Source
fill_opacity=(fill_opacity : IFNumber | Nil)

The opacity of the fill

Source
fill_rule

The algorithm to use to determine the inside part of a shape.

Potential Values: nonzero | evenodd

Source
fill_rule=(fill_rule : Bool)

The algorithm to use to determine the inside part of a shape.

Potential Values: nonzero | evenodd

Source
line_cap

How a line is capped at the ends

Potential Values: butt | round | square

Source
line_cap=(line_cap : String | Nil)

How a line is capped at the ends

Potential Values: butt | round | square

Source
line_join

How lines should be joined

Potential Values: arcs | bevel |miter | miter-clip | round

Source
line_join=(line_join : String | Nil)

How lines should be joined

Potential Values: arcs | bevel |miter | miter-clip | round

Source
miter_limit

The limit on the ratio of the miter length to the stroke-width used to draw a miter join. When the limit is exceeded, the join is converted from a miter to a bevel.

miter_limit=(miter_limit : IFNumber | Nil)

The limit on the ratio of the miter length to the stroke-width used to draw a miter join. When the limit is exceeded, the join is converted from a miter to a bevel.

miter_limit_units

What kind of unit miter_limit should use when rendering

miter_limit_units=(miter_limit_units : String | Nil)

What kind of unit miter_limit should use when rendering

opacity

The total opacity of the drawable

Source
opacity=(opacity : IFNumber | Nil)

The total opacity of the drawable

Source
set_fill(pattern : Celestine::Pattern)
Source
set_fill(gradient : Celestine::Gradient)
Source
set_stroke(pattern : Celestine::Pattern)
Source
set_stroke(gradient : Celestine::Gradient)
Source
shape_rendering

Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.

  • Potential Values: auto | optimizeSpeed | crispEdges | geometricPrecision
  • Mozilla SVG Docs
Source
shape_rendering=(shape_rendering : String | Nil)

Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.

  • Potential Values: auto | optimizeSpeed | crispEdges | geometricPrecision
  • Mozilla SVG Docs
Source
stroke

The color of the stroke

Source
stroke=(stroke : String | Nil)

The color of the stroke

Source
stroke_fill_attribute(io : IO)

Draws the stroke and fill attributes out to an IO

Source
stroke_opacity

The opacity of the fill

Source
stroke_opacity=(stroke_opacity : IFNumber | Nil)

The opacity of the fill

Source
stroke_width

The width of the stroke

stroke_width=(stroke_width : IFNumber | Nil)

The width of the stroke

stroke_width_units

What kind of unit stroke_width should use when rendering

stroke_width_units=(stroke_width_units : String | Nil)

What kind of unit stroke_width should use when rendering

vector_effect

Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.

  • Potential Values: none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position
  • Mozilla SVG Docs
Source
vector_effect=(vector_effect : String | Nil)

Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.

  • Potential Values: none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position
  • Mozilla SVG Docs
Source

Nested types