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

Method darken

libraries/rainbow/src/rainbow.cpp:213–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213QColor Rainbow::darken(const QColor& color, qreal ky, qreal kc)
214{
215 KHCY c(color);
216 c.y = normalize(c.y * (1.0 - ky));
217 c.c = normalize(c.c * kc);
218 return c.qColor();
219}
220
221QColor Rainbow::shade(const QColor& color, qreal ky, qreal kc)
222{

Callers

nothing calls this directly

Calls 2

normalizeFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected