8#include <tracking/trackFindingCDC/display/Colors.h>
13using namespace TrackFindingCDC;
45 return p + (q - p) * 6 * t;
51 return p + (q - p) * (2. / 3. - t) * 6;
61 double q = l < 0.5 ? l * (1 + s) : l + s - l * s;
73 double hue(degree % 360 / 360.);
74 double saturation = 0.75;
75 double lightness = 0.5;
78 std::ostringstream oss;
79 oss <<
"rgb(" << rgb[0] * 100 <<
"%, " << rgb[1] * 100 <<
"%, " << rgb[2] * 100 <<
"%)";
static std::string getWheelColor(int degree)
Get a color from the wheel of colors.
static double hueToRgb(double p, double q, double t)
Transforms a Color given in the HLS System to RGB.
static std::array< double, 3 > hlsToRgb(double h, double l, double s)
Transforms a Color given in the HLS System to RGB.
static std::vector< std::string > getList()
Get a list of useful colors.
Abstract base class for different kinds of events.