module Celestine::Modules::StrokeFill
Overview
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
Defined in:
modules/stroke_fill.crInstance Method Summary
-
#color : String | Nil
The inherited/inheriting color of the drawable
-
#color=(color : String | Nil)
The inherited/inheriting color of the drawable
-
#color_interpolation : String | Nil
Specifies the color space for gradient interpolations, color animations, and alpha compositing
-
#color_interpolation=(color_interpolation : String | Nil)
Specifies the color space for gradient interpolations, color animations, and alpha compositing
-
#color_interpolation_filters : String | Nil
Specifies the color space for imaging operations performed via filter effects.
-
#color_interpolation_filters=(color_interpolation_filters : String | Nil)
Specifies the color space for imaging operations performed via filter effects.
-
#dash_array : Array(Float64)
An array representing the amount of units a line should be "on" and "off" for.
-
#dash_array=(dash_array : Array(Float64))
An array representing the amount of units a line should be "on" and "off" for.
-
#dash_offset : IFNumber | Nil
The offset to begin dashes on
-
#dash_offset=(dash_offset : IFNumber | Nil)
The offset to begin dashes on
-
#dash_offset_units : String | Nil
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 : String | Nil
The color of the fill
-
#fill=(fill : String | Nil)
The color of the fill
-
#fill_opacity : IFNumber | Nil
The opacity of the fill
-
#fill_opacity=(fill_opacity : IFNumber | Nil)
The opacity of the fill
-
#fill_rule : Bool
The algorithm to use to determine the inside part of a shape.
-
#fill_rule=(fill_rule : Bool)
The algorithm to use to determine the inside part of a shape.
-
#line_cap : String | Nil
How a line is capped at the ends
-
#line_cap=(line_cap : String | Nil)
How a line is capped at the ends
-
#line_join : String | Nil
How lines should be joined
-
#line_join=(line_join : String | Nil)
How lines should be joined
-
#miter_limit : IFNumber | Nil
The limit on the ratio of the miter length to the stroke-width used to draw a miter join.
-
#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.
-
#miter_limit_units : String | Nil
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 : IFNumber | Nil
The total opacity of the drawable
-
#opacity=(opacity : IFNumber | Nil)
The total opacity of the drawable
- #set_fill(pattern : Celestine::Pattern)
- #set_fill(gradient : Celestine::Gradient)
- #set_stroke(pattern : Celestine::Pattern)
- #set_stroke(gradient : Celestine::Gradient)
-
#shape_rendering : String | Nil
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
-
#shape_rendering=(shape_rendering : String | Nil)
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
-
#stroke : String | Nil
The color of the stroke
-
#stroke=(stroke : String | Nil)
The color of the stroke
-
#stroke_fill_attribute(io : IO)
Draws the stroke and fill attributes out to an
IO
-
#stroke_opacity : IFNumber | Nil
The opacity of the fill
-
#stroke_opacity=(stroke_opacity : IFNumber | Nil)
The opacity of the fill
-
#stroke_width : IFNumber | Nil
The width of the stroke
-
#stroke_width=(stroke_width : IFNumber | Nil)
The width of the stroke
-
#stroke_width_units : String | Nil
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 : String | Nil
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
-
#vector_effect=(vector_effect : String | Nil)
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
Instance Method Detail
The inherited/inheriting color of the drawable
- Potential Values:
<Any CSS Color Type> | currentColor
- Mozilla SVG Docs
The inherited/inheriting color of the drawable
- Potential Values:
<Any CSS Color Type> | currentColor
- Mozilla SVG Docs
Specifies the color space for gradient interpolations, color animations, and alpha compositing
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
Specifies the color space for gradient interpolations, color animations, and alpha compositing
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
Specifies the color space for imaging operations performed via filter effects.
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
Specifies the color space for imaging operations performed via filter effects.
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
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.
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.
What kind of unit #dash_offset
should use when rendering
The opacity of the fill
The algorithm to use to determine the inside part of a shape.
Potential Values: nonzero | evenodd
The algorithm to use to determine the inside part of a shape.
Potential Values: nonzero | evenodd
How lines should be joined
Potential Values: arcs | bevel |miter | miter-clip | round
How lines should be joined
Potential Values: arcs | bevel |miter | miter-clip | round
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.
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.
What kind of unit #miter_limit
should use when rendering
The total opacity of the drawable
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
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
The opacity of the fill
What kind of unit #stroke_width
should use when rendering
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
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