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

Method lighten

libraries/rainbow/src/rainbow.cpp:259–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259QColor Rainbow::lighten(const QColor &color, qreal ky, qreal kc)
260{
261 KHCY c(color);
262 c.y = 1.0 - normalize((1.0 - c.y) * (1.0 - ky));
263 c.c = 1.0 - normalize((1.0 - c.c) * kc);
264 return c.qColor();
265}
266
267QColor Rainbow::darken(const QColor &color, qreal ky, qreal kc)
268{

Callers

nothing calls this directly

Calls 2

normalizeFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected