Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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