41 #ifndef BPP_GRAPHICS_COLORTOOLS_H
42 #define BPP_GRAPHICS_COLORTOOLS_H
45 #include "../Exceptions.h"
46 #include "../Text/TextTools.h"
88 unsigned int i = (
unsigned int)round(255 * level);
112 unsigned int r =
static_cast<unsigned int>(round(255 * (1. - c) * (1. - k)));
113 unsigned int g =
static_cast<unsigned int>(round(255 * (1. - m) * (1. - k)));
114 unsigned int b =
static_cast<unsigned int>(round(255 * (1. - y) * (1. - k)));
Describe a color according to its red, green and blue componants.