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

Function tintHelper

libraries/rainbow/src/rainbow.cpp:229–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static QColor tintHelper(const QColor& base, qreal baseLuma, const QColor& color, qreal amount)
230{
231 KHCY result(Rainbow::mix(base, color, pow(amount, 0.3)));
232 result.y = mixQreal(baseLuma, result.y, amount);
233
234 return result.qColor();
235}
236
237QColor Rainbow::tint(const QColor& base, const QColor& color, qreal amount)
238{

Callers 1

tintMethod · 0.85

Calls 2

mixQrealFunction · 0.85
qColorMethod · 0.80

Tested by

no test coverage detected