MCPcopy Create free account
hub / github.com/MultiMC/Launcher / darken

Method darken

libraries/rainbow/src/rainbow.cpp:267–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267QColor Rainbow::darken(const QColor &color, qreal ky, qreal kc)
268{
269 KHCY c(color);
270 c.y = normalize(c.y * (1.0 - ky));
271 c.c = normalize(c.c * kc);
272 return c.qColor();
273}
274
275QColor Rainbow::shade(const QColor &color, qreal ky, qreal kc)
276{

Callers

nothing calls this directly

Calls 2

normalizeFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected