31 qreal max = qMax(c.redF(), qMax(c.greenF(), c.blueF()));
32 qreal min = qMin(c.redF(), qMin(c.greenF(), c.blueF()));
38 return 0.30 * c.redF() + 0.59 * c.greenF() + 0.11 * c.blueF();
40 QColor
color_from_lch(qreal hue, qreal chroma, qreal luma, qreal alpha = 1 );
49 return QColor::fromHsvF(hue,1,1);
54 return ( qMax(c.redF(),qMax(c.greenF(),c.blueF())) +
55 qMin(c.redF(),qMin(c.greenF(),c.blueF())) ) / 2;
62 if ( qFuzzyCompare(l+1,1) || qFuzzyCompare(l+1,2) )
64 return c / (1-qAbs(2*l-1));
67 QColor
color_from_hsl(qreal hue, qreal sat, qreal lig, qreal alpha = 1 );