RGB-Led driver, used to handle convertions between HEX and integer to regulate LEDS through the embed.
Color Class Reference
Color class A Color class to manage the colors, from HEX to RGB or int. More...
#include <color.h>
Public Types | |
enum | colors |
enum of colors More... | |
Public Member Functions | |
Color (int red, int green, int blue) | |
Color instance with red, green, blue as integers. | |
Color (int color) | |
Color instance with an integer. | |
Color (float red, float green, float blue) | |
Color instance with red, green, blue as floats. | |
int | getHex () |
getHex method Returns the color as a Hex | |
int | getRed () |
getRed method Returns the color red as an integer | |
int | getGreen () |
getGreen method Returns the color green as an integer | |
int | getBlue () |
getBlue method Returns the color blue as an integer |
Detailed Description
Color class A Color class to manage the colors, from HEX to RGB or int.
Definition at line 6 of file color.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Color | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Color | ( | float | red, |
float | green, | ||
float | blue | ||
) |
Member Function Documentation
int getBlue | ( | ) |
int getGreen | ( | ) |
Generated on Tue Jul 12 2022 16:48:34 by 1.7.2