| 227 | } |
| 228 | |
| 229 | static 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 | |
| 237 | QColor Rainbow::tint(const QColor& base, const QColor& color, qreal amount) |
| 238 | { |