Create a new color object.
Arguments
- r
A non-negative integer. Color red value.
- g
A non-negative integer. Color green value.
- b
A non-negative integer. Color blue value.
- a
A non-negative integer. Color alpha value.
Note
This class has been auto-generated from the following Raylib struct definition:
typedef struct Color {// Color red value
unsigned char r; // Color green value
unsigned char g; // Color blue value
unsigned char b; // Color alpha value
unsigned char a; } Color;
See also
Other color functions:
as_color()
,
color_alpha_blend()
,
color_alpha()
,
color_from_hsv()
,
color_from_normalized()
,
color_normalize()
,
color_to_hsv()
,
color_to_int()
,
gen_image_color()
,
get_color()
,
get_image_color()
,
image_color_brightness()
,
image_color_contrast()
,
image_color_grayscale()
,
image_color_invert()
,
image_color_replace()
,
image_color_tint()