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:

modules/stroke_fill.cr

Instance Method Summary

Instance Method Detail

def color : String | Nil #

The inherited/inheriting color of the drawable


[View source]
def color=(color : String | Nil) #

The inherited/inheriting color of the drawable


[View source]
def color_interpolation : String | Nil #

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


[View source]
def color_interpolation=(color_interpolation : String | Nil) #

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


[View source]
def color_interpolation_filters : String | Nil #

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


[View source]
def color_interpolation_filters=(color_interpolation_filters : String | Nil) #

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


[View source]
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.


[View source]
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.


[View source]
def dash_offset : IFNumber | Nil #

The offset to begin dashes on


def dash_offset=(dash_offset : IFNumber | Nil) #

The offset to begin dashes on


def dash_offset_units : String | Nil #

What kind of unit #dash_offset should use when rendering


def dash_offset_units=(dash_offset_units : String | Nil) #

What kind of unit #dash_offset should use when rendering


def fill : String | Nil #

The color of the fill


[View source]
def fill=(fill : String | Nil) #

The color of the fill


[View source]
def fill_opacity : IFNumber | Nil #

The opacity of the fill


[View source]
def fill_opacity=(fill_opacity : IFNumber | Nil) #

The opacity of the fill


[View source]
def fill_rule : Bool #

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

Potential Values: nonzero | evenodd


[View source]
def fill_rule=(fill_rule : Bool) #

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

Potential Values: nonzero | evenodd


[View source]
def line_cap : String | Nil #

How a line is capped at the ends

Potential Values: butt | round | square


[View source]
def line_cap=(line_cap : String | Nil) #

How a line is capped at the ends

Potential Values: butt | round | square


[View source]
def line_join : String | Nil #

How lines should be joined

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


[View source]
def line_join=(line_join : String | Nil) #

How lines should be joined

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


[View source]
def 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.


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


def miter_limit_units : String | Nil #

What kind of unit #miter_limit should use when rendering


def miter_limit_units=(miter_limit_units : String | Nil) #

What kind of unit #miter_limit should use when rendering


def opacity : IFNumber | Nil #

The total opacity of the drawable


[View source]
def opacity=(opacity : IFNumber | Nil) #

The total opacity of the drawable


[View source]
def set_fill(pattern : Celestine::Pattern) #

[View source]
def set_fill(gradient : Celestine::Gradient) #

[View source]
def set_stroke(pattern : Celestine::Pattern) #

[View source]
def set_stroke(gradient : Celestine::Gradient) #

[View source]
def 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

[View source]
def 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

[View source]
def stroke : String | Nil #

The color of the stroke


[View source]
def stroke=(stroke : String | Nil) #

The color of the stroke


[View source]
def stroke_fill_attribute(io : IO) #

Draws the stroke and fill attributes out to an IO


[View source]
def stroke_opacity : IFNumber | Nil #

The opacity of the fill


[View source]
def stroke_opacity=(stroke_opacity : IFNumber | Nil) #

The opacity of the fill


[View source]
def stroke_width : IFNumber | Nil #

The width of the stroke


def stroke_width=(stroke_width : IFNumber | Nil) #

The width of the stroke


def stroke_width_units : String | Nil #

What kind of unit #stroke_width should use when rendering


def stroke_width_units=(stroke_width_units : String | Nil) #

What kind of unit #stroke_width should use when rendering


def 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

[View source]
def 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

[View source]