struct GUI::Color

Defined in:

color.cr

Constant Summary

BLACK = Color.new(0, 0, 0)
BLUE = Color.new(0, 1, 0)
GRAY100 = Color.new(244 / 255.to_f32, 245 / 255.to_f32, 247 / 255.to_f32)
GRAY500 = Color.new(75 / 255.to_f32, 85 / 255.to_f32, 99 / 255.to_f32)
GRAY900 = Color.new(55 / 255.to_f32, 65 / 255.to_f32, 81 / 255.to_f32)
GREEN = Color.new(0, 0, 1)
GREY = Color.new(0.5, 0.5, 0.5)
RED = Color.new(1, 0, 0)
WHITE = Color.new(1, 1, 1)

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def blue : Float32 #

[View source]
def green : Float32 #

[View source]
def red : Float32 #

[View source]