struct Oid::Color

Included Modules

Defined in:

oid/resources/color.cr
raylib/color.cr

Constant Summary

BEIGE = Color.new(r: 211, g: 176, b: 131)
BLACK = Color.new(r: 0, g: 0, b: 0)
BLANK = Color.new(r: 0, g: 0, b: 0, a: 0)
BLUE = Color.new(r: 0, g: 121, b: 241)
BROWN = Color.new(r: 127, g: 106, b: 79)
DARKBLUE = Color.new(r: 0, g: 82, b: 172)
DARKBROWN = Color.new(r: 76, g: 63, b: 47)
DARKGRAY = Color.new(r: 80, g: 80, b: 80)
DARKGREEN = Color.new(r: 0, g: 117, b: 44)
DARKPURPLE = Color.new(r: 112, g: 31, b: 126)
GOLD = Color.new(r: 255, g: 203, b: 0)
GRAY = Color.new(r: 130, g: 130, b: 130)
GREEN = Color.new(r: 0, g: 228, b: 48)
LIGHTGRAY = Color.new(r: 200, g: 200, b: 200)
LIME = Color.new(r: 0, g: 158, b: 47)
MAGENTA = Color.new(r: 255, g: 0, b: 255)
MAROON = Color.new(r: 190, g: 33, b: 55)
ORANGE = Color.new(r: 255, g: 161, b: 0)
PINK = Color.new(r: 255, g: 109, b: 194)
PURPLE = Color.new(r: 200, g: 122, b: 255)
RAYWHITE = Color.new(r: 245, g: 245, b: 245)
RED = Color.new(r: 230, g: 41, b: 55)
SKYBLUE = Color.new(r: 102, g: 191, b: 255)
VIOLET = Color.new(r: 135, g: 60, b: 190)
WHITE = Color.new(r: 255, g: 255, b: 255)
YELLOW = Color.new(r: 253, g: 249, b: 0)

Constructors

Instance Method Summary

Constructor Detail

def self.new(r : UInt8, g : UInt8, b : UInt8, a : UInt8 = 255) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(unwrap : Pointer(RayLib::Binding::Color)) #

[View source]
def self.new(unwrap : RayLib::Binding::Color) #

[View source]

Instance Method Detail

def a : UInt8 #

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

[View source]
def b : UInt8 #

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

[View source]
def g : UInt8 #

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

[View source]
def r : UInt8 #

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

[View source]
def to_unsafe #

[View source]