Skip to content

module Celestine::Modules::StrokeFill #

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

Direct including types

Celestine::Anchor Celestine::Circle Celestine::Ellipse Celestine::Group Celestine::Marker Celestine::Mask Celestine::Path Celestine::Pattern Celestine::Rectangle Celestine::Svg Celestine::Text Celestine::Use

Methods#

#color : String? #

The inherited/inheriting color of the drawable

View source

#color=(color : String?) #

The inherited/inheriting color of the drawable

View source

#color_interpolation : String? #

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

View source

#color_interpolation=(color_interpolation : String?) #

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

View source

#color_interpolation_filters : String? #

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

View source

#color_interpolation_filters=(color_interpolation_filters : String?) #

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

View source

#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.

View 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.

View source

#dash_offset : IFNumber? #

The offset to begin dashes on

#dash_offset=(dash_offset : IFNumber?) #

The offset to begin dashes on

#dash_offset_units : String? #

What kind of unit dash_offset should use when rendering

#dash_offset_units=(dash_offset_units : String?) #

What kind of unit dash_offset should use when rendering

#fill : String? #

The color of the fill

View source

#fill=(fill : String?) #

The color of the fill

View source

#fill_opacity : IFNumber? #

The opacity of the fill

View source

#fill_opacity=(fill_opacity : IFNumber?) #

The opacity of the fill

View source

#fill_rule : Bool #

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

Potential Values: nonzero | evenodd * Mozilla SVG Docs

View source

#fill_rule=(fill_rule : Bool) #

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

Potential Values: nonzero | evenodd * Mozilla SVG Docs

View source

#line_cap : String? #

How a line is capped at the ends

Potential Values: butt | round | square * Mozilla SVG Docs

View source

#line_cap=(line_cap : String?) #

How a line is capped at the ends

Potential Values: butt | round | square * Mozilla SVG Docs

View source

#line_join : String? #

How lines should be joined

Potential Values: arcs | bevel |miter | miter-clip | round * Mozilla SVG Docs

View source

#line_join=(line_join : String?) #

How lines should be joined

Potential Values: arcs | bevel |miter | miter-clip | round * Mozilla SVG Docs

View source

#miter_limit : IFNumber? #

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?) #

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 : String? #

What kind of unit miter_limit should use when rendering

#miter_limit_units=(miter_limit_units : String?) #

What kind of unit miter_limit should use when rendering

#opacity : IFNumber? #

The total opacity of the drawable

View source

#opacity=(opacity : IFNumber?) #

The total opacity of the drawable

View source

#set_fill(gradient : Celestine::Gradient) #

View source

#set_fill(pattern : Celestine::Pattern) #

View source

#set_stroke(pattern : Celestine::Pattern) #

View source

#set_stroke(gradient : Celestine::Gradient) #

View source

#shape_rendering : String? #

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
View source

#shape_rendering=(shape_rendering : String?) #

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
View source

#stroke : String? #

The color of the stroke

View source

#stroke=(stroke : String?) #

The color of the stroke

View source

#stroke_fill_attribute(io : IO) #

Draws the stroke and fill attributes out to an IO

View source

#stroke_opacity : IFNumber? #

The opacity of the fill

View source

#stroke_opacity=(stroke_opacity : IFNumber?) #

The opacity of the fill

View source

#stroke_width : IFNumber? #

The width of the stroke

#stroke_width=(stroke_width : IFNumber?) #

The width of the stroke

#stroke_width_units : String? #

What kind of unit stroke_width should use when rendering

#stroke_width_units=(stroke_width_units : String?) #

What kind of unit stroke_width should use when rendering

#vector_effect : String? #

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
View source

#vector_effect=(vector_effect : String?) #

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
View source

module Celestine::Modules::StrokeFill::Attrs #

Direct including types

Celestine::Anchor::Attrs Celestine::Circle::Attrs Celestine::Ellipse::Attrs Celestine::Group::Attrs Celestine::Marker::Attrs Celestine::Mask::Attrs Celestine::Path::Attrs Celestine::Pattern::Attrs Celestine::Rectangle::Attrs Celestine::Svg::Attrs Celestine::Text::Attrs Celestine::Use::Attrs

Constants#

COLOR = "color" #

COLOR_INTERPOLATION = "color_interpolation" #

COLOR_INTERPOLATION_FILTERS = "color_interpolation_filters" #

DASH_ARRAY = "stroke-dasharray" #

DASH_OFFSET = "stroke-dashoffset" #

FILL = "fill" #

FILL_OPACITY = "fill-opacity" #

FILL_RULE = "fill-rule" #

LINE_CAP = "stroke-linecap" #

LINE_JOIN = "stroke-linejoin" #

MITER_LIMIT = "stroke-miterlimit" #

OPACITY = "opacity" #

STROKE = "stroke" #

STROKE_OPACITY = "stroke-opacity" #

STROKE_WIDTH = "stroke-width" #

VECTOR_EFFECT = "vector-effect" #