class Celestine::Gradient::Linear
Defined in:
effects/gradients/linear_gradient.crConstant Summary
-
TAG =
"linearGradient"
Instance Method Summary
-
#draw(io : IO) : Nil
Main draw method for a drawable.
- #x1 : IFNumber | Nil
- #x1=(x1 : IFNumber | Nil)
-
#x1_units : String | Nil
What kind of unit
#x1
should use when rendering -
#x1_units=(x1_units : String | Nil)
What kind of unit
#x1
should use when rendering - #x2 : IFNumber | Nil
- #x2=(x2 : IFNumber | Nil)
-
#x2_units : String | Nil
What kind of unit
#x2
should use when rendering -
#x2_units=(x2_units : String | Nil)
What kind of unit
#x2
should use when rendering - #y1 : IFNumber | Nil
- #y1=(y1 : IFNumber | Nil)
-
#y1_units : String | Nil
What kind of unit
#y1
should use when rendering -
#y1_units=(y1_units : String | Nil)
What kind of unit
#y1
should use when rendering - #y2 : IFNumber | Nil
- #y2=(y2 : IFNumber | Nil)
-
#y2_units : String | Nil
What kind of unit
#y2
should use when rendering -
#y2_units=(y2_units : String | Nil)
What kind of unit
#y2
should use when rendering
Instance methods inherited from class Celestine::Gradient
<<(c_stop : Celestine::Gradient::Stop)
<<,
gradient_transform(&block : Celestine::Drawable::Transform -> Celestine::Drawable::Transform)
gradient_transform,
gradient_transform_attribute(io : IO)
gradient_transform_attribute,
gradient_units : String | Nil
gradient_units,
gradient_units=(gradient_units : String | Nil)
gradient_units=,
href : String | Nil
href,
href=(href : String | Nil)
href=,
spread_method : String | Nil
spread_method,
spread_method=(spread_method : String | Nil)
spread_method=,
stop(offset, color = nil, opacity = nil)stop(&block : Celestine::Gradient::Stop -> Celestine::Gradient::Stop) stop
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
animate(&block : Proc(Celestine::Animate, Nil))
animate
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
def draw(io : IO) : Nil
#
Description copied from class Celestine::Drawable
Main draw method for a drawable. Takes in and interacts with an io.