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

Method shade

libraries/rainbow/src/rainbow.cpp:275–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275QColor Rainbow::shade(const QColor &color, qreal ky, qreal kc)
276{
277 KHCY c(color);
278 c.y = normalize(c.y + ky);
279 c.c = normalize(c.c + kc);
280 return c.qColor();
281}
282
283static QColor tintHelper(const QColor &base, qreal baseLuma, const QColor &color, qreal amount)
284{

Callers

nothing calls this directly

Calls 2

normalizeFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected