MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / shade

Method shade

libraries/rainbow/src/rainbow.cpp:221–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221QColor Rainbow::shade(const QColor& color, qreal ky, qreal kc)
222{
223 KHCY c(color);
224 c.y = normalize(c.y + ky);
225 c.c = normalize(c.c + kc);
226 return c.qColor();
227}
228
229static QColor tintHelper(const QColor& base, qreal baseLuma, const QColor& color, qreal amount)
230{

Callers

nothing calls this directly

Calls 2

normalizeFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected