struct Oid::Color
- Oid::Color
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
oid/resources/color.crraylib/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
- .new(r : UInt8, g : UInt8, b : UInt8, a : UInt8 = 255)
- .new(pull : JSON::PullParser)
- .new(unwrap : Pointer(RayLib::Binding::Color))
- .new(unwrap : RayLib::Binding::Color)
Instance Method Summary
- #a : UInt8
- #a=(a : UInt8)
- #b : UInt8
- #b=(b : UInt8)
- #g : UInt8
- #g=(g : UInt8)
- #r : UInt8
- #r=(r : UInt8)
- #to_unsafe