26 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
33 double hh, p,
q, t, ff;
41 return DrawColor24Bit {(Ice::Byte)(r * 255), (Ice::Byte)(g * 255), (Ice::Byte)(b * 255)};
51 p = in.v * (1.0 - in.s);
52 q = in.v * (1.0 - (in.s * ff));
53 t = in.v * (1.0 - (in.s * (1.0 - ff)));
91 return DrawColor24Bit {(Ice::Byte)(r * 255), (Ice::Byte)(g * 255), (Ice::Byte)(b * 255)};
96 double r = 0.00392156862 * in.r;
97 double g = 0.00392156862 * in.g;
98 double b = 0.00392156862 * in.b;
118 out.s = (delta /
max);
130 out.h = (g - b) / delta;
134 out.h = 2.0 + (b - r) / delta;
138 out.h = 4.0 + (r - g) / delta;
162 return HsvColor {((1.0f - percentage) * 240.f), 1.0f, 1.0f};
173 return DrawColor {0.0039215686f * color.r,
174 0.0039215686f * color.g,
175 0.0039215686f * color.b,