|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Color utilities. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | rgb |
| RGB color values. More... | |
Macros | |
| #define | COLOR_BLACK get_rgb(0, 0, 0) |
| #define | COLOR_BLACK_BRIGHT get_rgb(128, 128, 128) |
| #define | COLOR_RED get_rgb(160, 0, 0) |
| #define | COLOR_RED_BRIGHT get_rgb(255, 50, 50) |
| #define | COLOR_GREEN get_rgb(0, 160, 0) |
| #define | COLOR_GREEN_BRIGHT get_rgb(50, 255, 50) |
| #define | COLOR_YELLOW get_rgb(160, 160, 0) |
| #define | COLOR_YELLOW_BRIGHT get_rgb(255, 255, 50) |
| #define | COLOR_BLUE get_rgb(0, 0, 200) |
| #define | COLOR_BLUE_BRIGHT get_rgb(60, 60, 255) |
| #define | COLOR_MAGENTA get_rgb(160, 0, 160) |
| #define | COLOR_MAGENTA_BRIGHT get_rgb(255, 50, 255) |
| #define | COLOR_CYAN get_rgb(0, 160, 160) |
| #define | COLOR_CYAN_BRIGHT get_rgb(50, 255, 255) |
| #define | COLOR_WHITE get_rgb(235, 235, 235) |
| #define | COLOR_WHITE_BRIGHT get_rgb(255, 255, 255) |
| #define | RGB(r, g, b) |
Functions | |
| struct rgb | get_rgb (uint8_t r, uint8_t g, uint8_t b) |
| Creates an RGB color value from the 3 separate colors. | |
| struct rgb | add_rgb (struct rgb a, struct rgb b) |
| Adds two RGB color values. | |
| struct rgb | sub_rgb (struct rgb a, struct rgb b) |
| Subtracts the second RGB color from the first. | |
Color utilities.
Definition in file color.h.
| #define RGB | ( | r, | |
| g, | |||
| b ) |
| struct rgb get_rgb | ( | uint8_t | r, |
| uint8_t | g, | ||
| uint8_t | b ) |