5 #ifndef BPP_GRAPHICS_COLORTOOLS_H 6 #define BPP_GRAPHICS_COLORTOOLS_H 9 #include "../Exceptions.h" 10 #include "../Text/TextTools.h" 52 unsigned int i = (
unsigned int)round(255 * level);
76 unsigned int r =
static_cast<unsigned int>(round(255 * (1. - c) * (1. - k)));
77 unsigned int g =
static_cast<unsigned int>(round(255 * (1. - m) * (1. - k)));
78 unsigned int b =
static_cast<unsigned int>(round(255 * (1. - y) * (1. - k)));
94 #endif // BPP_GRAPHICS_COLORTOOLS_H
Describe a color according to its red, green and blue componants.