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

Function tintHelper

libraries/rainbow/src/rainbow.cpp:283–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283static QColor tintHelper(const QColor &base, qreal baseLuma, const QColor &color, qreal amount)
284{
285 KHCY result(Rainbow::mix(base, color, pow(amount, 0.3)));
286 result.y = mixQreal(baseLuma, result.y, amount);
287
288 return result.qColor();
289}
290
291QColor Rainbow::tint(const QColor &base, const QColor &color, qreal amount)
292{

Callers 1

tintMethod · 0.85

Calls 2

mixQrealFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected