struct SDL::Color
- SDL::Color
- Struct
- Value
- Object
Defined in:
color.crConstructors
Instance Method Summary
Macro Summary
-
[](r, g, b, a = 255)
Creates a RGB(A)
Color
. -
[](rgb, a = 255)
Creates a
Color
of a single intensity.
Constructor Detail
Instance Method Detail
Macro Detail
macro [](r, g, b, a = 255)
#
Creates a RGB(A) Color
. For example Color[0, 0, 0]
is opaque black, whereas
Color[255, 0, 0, 128]
is half transparent red.