class
Celestine::Filter
- Celestine::Filter
- Celestine::Drawable
- Reference
- Object
Overview
https://www.smashingmagazine.com/2015/05/why-the-svg-filter-is-awesome/
Included Modules
Defined in:
effects/filter.crConstant Summary
-
BACKGROUND_ALPHA =
"BackgroundAlpha" -
BACKGROUND_IMAGE =
"BackgroundImage" -
FILL_PAINT =
"FillPaint" -
SOURCE_ALPHA =
"SourceAlpha" -
SOURCE_GRAPHIC =
"SourceGraphic" -
STROKE_PAINT =
"StrokePaint" -
TAG =
"filter"
Instance Method Summary
-
#blend(&block : Celestine::Filter::Blend -> )
Adds a
Celestine::Filter::Blendto the calling filter's inner elements. -
#blur(&block : Celestine::Filter::Blur -> )
Adds a
Celestine::Filter::Blurto the calling filter's inner elements. -
#color_matrix(&block : Celestine::Filter::ColorMatrix -> )
Adds a
Celestine::Filter::ColorMatrixto the calling filter's inner elements. -
#component_transfer(&block : Celestine::Filter::ComponentTransfer -> )
Adds a
Celestine::Filter::ComponentTransferto the calling filter's inner elements. -
#composite(&block : Celestine::Filter::Composite -> )
Adds a
Celestine::Filter::Compositeto the calling filter's inner elements. -
#displacement_map(&block : Celestine::Filter::DisplacementMap -> )
Adds a
Celestine::Filter::DisplacementMapto the calling filter's inner elements. -
#draw(io : IO) : Nil
Main draw method for a drawable.
-
#drop_shadow(&block : Celestine::Filter::DropShadow -> )
Adds a
Celestine::Filter::DropShadowto the calling filter's inner elements. - #filter_units : String | Nil
- #filter_units=(filter_units : String | Nil)
-
#flood(&block : Celestine::Filter::Flood -> )
Adds a
Celestine::Filter::Floodto the calling filter's inner elements. -
#image(&block : Celestine::Filter::Image -> )
Adds a
Celestine::Filter::Imageto the calling filter's inner elements. -
#merge(&block : Celestine::Filter::Merge -> )
Adds a
Celestine::Filter::Mergeto the calling filter's inner elements. -
#morphology(&block : Celestine::Filter::Morphology -> )
Adds a
Celestine::Filter::Morphologyto the calling filter's inner elements. -
#offset(&block : Celestine::Filter::Offset -> )
Adds a
Celestine::Filter::Offsetto the calling filter's inner elements. - #primitive_units : String | Nil
- #primitive_units=(primitive_units : String | Nil)
-
#specular_lighting(&block : Celestine::Filter::SpecularLighting -> )
Adds a
Celestine::Filter::SpecularLightingto the calling filter's inner elements. -
#tile(&block : Celestine::Filter::Tile -> )
Adds a
Celestine::Filter::Tileto the calling filter's inner elements. -
#turbulence(&block : Celestine::Filter::Turbulence -> )
Adds a
Celestine::Filter::Turbulenceto the calling filter's inner elements.
Instance methods inherited from module Celestine::Modules::Animate
animate(&block : Celestine::Animate -> )
animate
Instance methods inherited from module Celestine::Modules::Body
body_attribute(io)
body_attribute,
height : IFNumber | Nil
height,
height=(height : IFNumber | Nil)
height=,
height_units : String | Nil
height_units,
height_units=(height_units : String | Nil)
height_units=,
width : IFNumber | Nil
width,
width=(width : IFNumber | Nil)
width=,
width_units : String | Nil
width_units,
width_units=(width_units : String | Nil)
width_units=
Instance methods inherited from module Celestine::Modules::Position
position_attribute(io : IO)
position_attribute,
x : IFNumber | Nil
x,
x=(x : IFNumber | Nil)
x=,
x_units : String | Nil
x_units,
x_units=(x_units : String | Nil)
x_units=,
y : IFNumber | Nil
y,
y=(y : IFNumber | Nil)
y=,
y_units : String | Nil
y_units,
y_units=(y_units : String | Nil)
y_units=
Instance methods inherited from class Celestine::Drawable
class_attribute(io : IO)
class_attribute,
classes : Array(String)
classes,
classes=(val : Array(String))
classes=,
custom_attribute(io : IO)
custom_attribute,
custom_attrs : Hash(String, String)
custom_attrs,
custom_attrs=(val : Hash(String, String))
custom_attrs=,
draw(io : IO) : Nil
draw,
has_inner_elements? : Bool
has_inner_elements?,
id : String | Nil
id,
id=(id : String | Nil)
id=,
id_attribute(io : IO)
id_attribute,
inner_elements : IO::Memory
inner_elements,
inner_elements=(val : IO::Memory)
inner_elements=,
style : Hash(String, String)
style,
style=(val : Hash(String, String))
style=,
style_attribute(io : IO)
style_attribute,
to_s(io : IO) : Nilto_s : String to_s
Instance Method Detail
Adds a Celestine::Filter::Blend to the calling filter's inner elements.
Adds a Celestine::Filter::Blur to the calling filter's inner elements.
Adds a Celestine::Filter::ColorMatrix to the calling filter's inner elements.
Adds a Celestine::Filter::ComponentTransfer to the calling filter's inner elements.
Adds a Celestine::Filter::Composite to the calling filter's inner elements.
Adds a Celestine::Filter::DisplacementMap to the calling filter's inner elements.
Main draw method for a drawable. Takes in and interacts with an io.
Adds a Celestine::Filter::DropShadow to the calling filter's inner elements.
Adds a Celestine::Filter::Flood to the calling filter's inner elements.
Adds a Celestine::Filter::Image to the calling filter's inner elements.
Adds a Celestine::Filter::Merge to the calling filter's inner elements.
Adds a Celestine::Filter::Morphology to the calling filter's inner elements.
Adds a Celestine::Filter::Offset to the calling filter's inner elements.
Adds a Celestine::Filter::SpecularLighting to the calling filter's inner elements.
Adds a Celestine::Filter::Tile to the calling filter's inner elements.
Adds a Celestine::Filter::Turbulence to the calling filter's inner elements.