class Celestine::Marker

Overview

Class which acts like a group, but applies masking to another drawable.

Included Modules

Defined in:

celestine.cr
effects/marker.cr

Constant Summary

TAG = "marker"

Instance Method Summary

Instance methods inherited from module Celestine::Meta::Context::Methods

<<(drawable : Celestine::Drawable) <<, use(id : String)
use(drawable : Celestine::Drawable)
use(drawable : Celestine::Drawable, &block : Celestine::Use -> Celestine::Use)
use(id : String, &block : Celestine::Use -> Celestine::Use)
use(&block : Celestine::Use -> Celestine::Use)
use

Instance methods inherited from module Celestine::Modules::Filter

filter_attribute(io : IO) filter_attribute, set_filter(id : String)
set_filter(filter : Celestine::Filter)
set_filter

Instance methods inherited from module Celestine::Modules::Animate::Motion

animate_motion(&block : Celestine::Animate::Motion -> Celestine::Animate::Motion) animate_motion

Instance methods inherited from module Celestine::Modules::Animate

animate(&block : Proc(Celestine::Animate, Nil)) animate

Instance methods inherited from module Celestine::Modules::StrokeFill

color : String | Nil color, color=(color : String | Nil) color=, color_interpolation : String | Nil color_interpolation, color_interpolation=(color_interpolation : String | Nil) color_interpolation=, color_interpolation_filters : String | Nil color_interpolation_filters, color_interpolation_filters=(color_interpolation_filters : String | Nil) color_interpolation_filters=, dash_array : Array(Float64) dash_array, dash_array=(dash_array : Array(Float64)) dash_array=, dash_offset : IFNumber | Nil dash_offset, dash_offset=(dash_offset : IFNumber | Nil) dash_offset=, dash_offset_units : String | Nil dash_offset_units, dash_offset_units=(dash_offset_units : String | Nil) dash_offset_units=, fill : String | Nil fill, fill=(fill : String | Nil) fill=, fill_opacity : IFNumber | Nil fill_opacity, fill_opacity=(fill_opacity : IFNumber | Nil) fill_opacity=, fill_rule : Bool fill_rule, fill_rule=(fill_rule : Bool) fill_rule=, line_cap : String | Nil line_cap, line_cap=(line_cap : String | Nil) line_cap=, line_join : String | Nil line_join, line_join=(line_join : String | Nil) line_join=, miter_limit : IFNumber | Nil miter_limit, miter_limit=(miter_limit : IFNumber | Nil) miter_limit=, miter_limit_units : String | Nil miter_limit_units, miter_limit_units=(miter_limit_units : String | Nil) miter_limit_units=, opacity : IFNumber | Nil opacity, opacity=(opacity : IFNumber | Nil) opacity=, set_fill(pattern : Celestine::Pattern)
set_fill(gradient : Celestine::Gradient)
set_fill
, set_stroke(pattern : Celestine::Pattern)
set_stroke(gradient : Celestine::Gradient)
set_stroke
, shape_rendering : String | Nil shape_rendering, shape_rendering=(shape_rendering : String | Nil) shape_rendering=, stroke : String | Nil stroke, stroke=(stroke : String | Nil) stroke=, stroke_fill_attribute(io : IO) stroke_fill_attribute, stroke_opacity : IFNumber | Nil stroke_opacity, stroke_opacity=(stroke_opacity : IFNumber | Nil) stroke_opacity=, stroke_width : IFNumber | Nil stroke_width, stroke_width=(stroke_width : IFNumber | Nil) stroke_width=, stroke_width_units : String | Nil stroke_width_units, stroke_width_units=(stroke_width_units : String | Nil) stroke_width_units=, vector_effect : String | Nil vector_effect, vector_effect=(vector_effect : String | Nil) vector_effect=

Instance methods inherited from module Celestine::Modules::Transform

transform(&block : Celestine::Drawable::Transform -> Celestine::Drawable::Transform) transform, transform_attribute(io : IO) transform_attribute

Instance methods inherited from class Celestine::Drawable

class_attribute(io : IO) class_attribute, classes : Array(String) classes, classes=(classes : Array(String)) classes=, custom_attribute(io : IO) custom_attribute, custom_attrs : Hash(String, String) custom_attrs, custom_attrs=(custom_attrs : Hash(String, String)) custom_attrs=, draw(io : IO) : Nil draw, id : String | Nil id, id=(id : String | Nil) id=, id_attribute(io : IO) id_attribute, inner_elements : IO::Memory inner_elements, inner_elements=(inner_elements : IO::Memory) inner_elements=, style : Hash(String, String) style, style=(style : Hash(String, String)) style=, style_attribute(io : IO) style_attribute

Instance Method Detail

Allows a Celestine::Anchor to be made using a DSL call, and added to this drawables items.


Allows a Celestine::Circle to be made using a DSL call, and added to this drawables items.


def draw(io : IO) : Nil #
Description copied from class Celestine::Drawable

Main draw method for a drawable. Takes in and interacts with an io.


[View source]

Allows a Celestine::Ellipse to be made using a DSL call, and added to this drawables items.


Allows a Celestine::Group to be made using a DSL call, and added to this drawables items.


def height : IFNumber | Nil #

def height=(height : IFNumber | Nil) #

def height_units : String | Nil #

What kind of unit #height should use when rendering


def height_units=(height_units : String | Nil) #

What kind of unit #height should use when rendering


Allows a Celestine::Image to be made using a DSL call, and added to this drawables items.


def orientation : String | Nil #

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

[View source]

Allows a Celestine::Path to be made using a DSL call, and added to this drawables items.


def preserve_aspect_ratio : String | Nil #

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

[View source]

Allows a Celestine::Rectangle to be made using a DSL call, and added to this drawables items.


def ref_x : String | Nil #

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

[View source]
def ref_y : String | Nil #

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

[View source]

Allows a Celestine::Svg to be made using a DSL call, and added to this drawables items.


Allows a Celestine::Text to be made using a DSL call, and added to this drawables items.


def units : String | Nil #

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

[View source]
def view_box : Celestine::ViewBox | Nil #

[View source]
def view_box=(view_box : Celestine::ViewBox | Nil) #

[View source]
def width : IFNumber | Nil #

def width=(width : IFNumber | Nil) #

def width_units : String | Nil #

What kind of unit #width should use when rendering


def width_units=(width_units : String | Nil) #

What kind of unit #width should use when rendering