module Celestine::Modules::StrokeFill

Overview

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

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def color : String? #

The inherited/inheriting color of the drawable


def color=(color : String?) #

The inherited/inheriting color of the drawable


def color_interpolation : String? #

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


def color_interpolation=(color_interpolation : String?) #

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


def color_interpolation_filters : String? #

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


def color_interpolation_filters=(color_interpolation_filters : String?) #

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


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


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


def dash_offset : IFNumber? #

The offset to begin dashes on


def dash_offset=(dash_offset : IFNumber?) #

The offset to begin dashes on


def dash_offset_units : String? #

What kind of unit #dash_offset should use when rendering


def dash_offset_units=(dash_offset_units : String?) #

What kind of unit #dash_offset should use when rendering


def fill : String? #

The color of the fill


def fill=(fill : String?) #

The color of the fill


def fill_opacity : IFNumber? #

The opacity of the fill


def fill_opacity=(fill_opacity : IFNumber?) #

The opacity of the fill


def fill_rule : Bool #

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

Potential Values: nonzero | evenodd


def fill_rule=(fill_rule : Bool) #

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

Potential Values: nonzero | evenodd


def line_cap : String? #

How a line is capped at the ends

Potential Values: butt | round | square


def line_cap=(line_cap : String?) #

How a line is capped at the ends

Potential Values: butt | round | square


def line_join : String? #

How lines should be joined

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


def line_join=(line_join : String?) #

How lines should be joined

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


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


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


def miter_limit_units : String? #

What kind of unit #miter_limit should use when rendering


def miter_limit_units=(miter_limit_units : String?) #

What kind of unit #miter_limit should use when rendering


def opacity : IFNumber? #

The total opacity of the drawable


def opacity=(opacity : IFNumber?) #

The total opacity of the drawable


def set_fill(gradient : Celestine::Gradient) #

def set_fill(pattern : Celestine::Pattern) #

def set_stroke(pattern : Celestine::Pattern) #

def set_stroke(gradient : Celestine::Gradient) #

def 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

def 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

def stroke : String? #

The color of the stroke


def stroke=(stroke : String?) #

The color of the stroke


def stroke_fill_attribute(io : IO) #

Draws the stroke and fill attributes out to an IO


def stroke_opacity : IFNumber? #

The opacity of the fill


def stroke_opacity=(stroke_opacity : IFNumber?) #

The opacity of the fill


def stroke_width : IFNumber? #

The width of the stroke


def stroke_width=(stroke_width : IFNumber?) #

The width of the stroke


def stroke_width_units : String? #

What kind of unit #stroke_width should use when rendering


def stroke_width_units=(stroke_width_units : String?) #

What kind of unit #stroke_width should use when rendering


def 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

def 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