struct Glove::Color

Defined in:

color.cr

Constant Summary

BLACK = Glove::Color.new(0.0_f32, 0.0_f32, 0.0_f32, 1.0_f32)
WHITE = Glove::Color.new(1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32)

Constructors

Instance Method Summary

Constructor Detail

def self.new(r : Float32, g : Float32, b : Float32, a : Float32) #

[View source]

Instance Method Detail

def a : Float32 #

[View source]
def a=(a : Float32) #

[View source]
def b : Float32 #

[View source]
def b=(b : Float32) #

[View source]
def g : Float32 #

[View source]
def g=(g : Float32) #

[View source]
def lerp(other : Glove::Color, t : Float32) #

[View source]
def r : Float32 #

[View source]
def r=(r : Float32) #

[View source]