Open Sidebar
Close Sidebar
dfl
master
Top Level Namespace
DFL
Color
DataTypes
Empty
Graphic
Head
HeadType
Palette
PalGraphic
Sound
WritingMethods
DFL
Empty
Graphic
Head
Palette
PalGraphic
Sound
struct
DFL::Color
DFL::Color
Struct
Value
Object
Overview
A color
Defined in:
D_File/dfl/graphic.cr
Constructors
.from_raylib
(color : Raylib::Color) : Color
.new
(r : UInt8 =
0
, g : UInt8 =
0
, b : UInt8 =
0
)
Instance Method Summary
#b
: UInt8
#b=
(b : UInt8)
#g
: UInt8
#g=
(g : UInt8)
#r
: UInt8
#r=
(r : UInt8)
#to_raylib
: Raylib::Color
Constructor Detail
def self.
from_raylib
(color : Raylib::Color) :
Color
#
[
View source
]
def self.
new
(r : UInt8 =
0
, g : UInt8 =
0
, b : UInt8 =
0
)
#
[
View source
]
Instance Method Detail
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_raylib
: Raylib::Color
#
[
View source
]