struct Garnet::Color

Defined in:

garnet-color.cr

Constant Summary

BLACK = self.new(0.0_f32, 0.0_f32, 0.0_f32, 1.0_f32)
WHITE = self.new(1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32)

Constructors

Instance Method Summary

Constructor Detail

def self.new(red : Float32, green : Float32, blue : Float32, alpha : Float32) #

[View source]

Instance Method Detail

def alpha : Float32 #

[View source]
def blue : Float32 #

[View source]
def green : Float32 #

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

[View source]
def red : Float32 #

[View source]