class Celestine::Gradient::Linear

Defined in:

effects/gradients/linear_gradient.cr

Constant Summary

TAG = "linearGradient"

Instance Method Summary

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.


[View source]
def x1 : IFNumber | Nil #

def x1=(x1 : IFNumber | Nil) #

def x1_units : String | Nil #

What kind of unit #x1 should use when rendering


def x1_units=(x1_units : String | Nil) #

What kind of unit #x1 should use when rendering


def x2 : IFNumber | Nil #

def x2=(x2 : IFNumber | Nil) #

def x2_units : String | Nil #

What kind of unit #x2 should use when rendering


def x2_units=(x2_units : String | Nil) #

What kind of unit #x2 should use when rendering


def y1 : IFNumber | Nil #

def y1=(y1 : IFNumber | Nil) #

def y1_units : String | Nil #

What kind of unit #y1 should use when rendering


def y1_units=(y1_units : String | Nil) #

What kind of unit #y1 should use when rendering


def y2 : IFNumber | Nil #

def y2=(y2 : IFNumber | Nil) #

def y2_units : String | Nil #

What kind of unit #y2 should use when rendering


def y2_units=(y2_units : String | Nil) #

What kind of unit #y2 should use when rendering