Skip to content

class Celestine::Gradient::Linear
inherits Celestine::Gradient #

Constants#

TAG = "linearGradient" #

Methods#

#draw(io : IO) : Nil #

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

View source

#x1 : IFNumber? #

#x1=(x1 : IFNumber?) #

#x1_units : String? #

What kind of unit x1 should use when rendering

#x1_units=(x1_units : String?) #

What kind of unit x1 should use when rendering

#x2 : IFNumber? #

#x2=(x2 : IFNumber?) #

#x2_units : String? #

What kind of unit x2 should use when rendering

#x2_units=(x2_units : String?) #

What kind of unit x2 should use when rendering

#y1 : IFNumber? #

#y1=(y1 : IFNumber?) #

#y1_units : String? #

What kind of unit y1 should use when rendering

#y1_units=(y1_units : String?) #

What kind of unit y1 should use when rendering

#y2 : IFNumber? #

#y2=(y2 : IFNumber?) #

#y2_units : String? #

What kind of unit y2 should use when rendering

#y2_units=(y2_units : String?) #

What kind of unit y2 should use when rendering

module Celestine::Gradient::Linear::Attrs #

Constants#

X1 = "x1" #

X2 = "x2" #

Y1 = "y1" #

Y2 = "y2" #