| 281 | } |
| 282 | |
| 283 | static 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 | |
| 291 | QColor Rainbow::tint(const QColor &base, const QColor &color, qreal amount) |
| 292 | { |