Handbook
Glossary
Color
Vocabulary
raylib
Class description
Represents a RGBA color with 8-bit unsigned components. Raylib comes with 25 default colors.
Builtin colors
LIGHTGRAY
( -- value )
GRAY
( -- value )
DARKGRAY
( -- value )
YELLOW
( -- value )
GOLD
( -- value )
ORANGE
( -- value )
PINK
( -- value )
RED
( -- value )
MAROON
( -- value )
GREEN
( -- value )
LIME
( -- value )
DARKGREEN
( -- value )
SKYBLUE
( -- value )
BLUE
( -- value )
DARKBLUE
( -- value )
PURPLE
( -- value )
VIOLET
( -- value )
DARKPURPLE
( -- value )
BEIGE
( -- value )
BROWN
( -- value )
DARKBROWN
( -- value )
WHITE
( -- value )
BLACK
( -- value )
MAGENTA
( -- value )
RAYWHITE
( -- value )
Definition
USING:
alien.c-types
classes.struct
;
IN:
raylib
STRUCT:
Color
{
r
uchar
initial:
0
}
{
g
uchar
initial:
0
}
{
b
uchar
initial:
0
}
{
a
uchar
initial:
0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
raylib
;
M:
Color
clone
clone-underlying
\
Color
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
raylib
;
M:
Color
struct-slot-values
{
[
r>>
]
[
g>>
]
[
b>>
]
[
a>>
]
}
cleave>array
;
inline