color¶
color_from_RGBA¶
-
static struct color
color_from_RGBA
(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)¶ Create a new color using Red Green Blue and Alpha values.
- Return
- new color struct by value
- Parameters
red
-0-255 intensity of red
green
-0-255 intensity of blue
blue
-0-255 intensity of green
alpha
-0-255 alpha value
color_from_RGB¶
-
static struct color
color_from_RGB
(uint8_t red, uint8_t green, uint8_t blue)¶ Create a new color using Red Green and Blue values. The color will be opaque with a default alpha value of 255.
- Return
- new color struct by value
- Parameters
red
-0-255 intensity of red
green
-0-255 intensity of blue
blue
-0-255 intensity of green