30QColor QQuickSaturationLightnessPicker::colorAt(
const QPointF &pos)
32 const qreal w = width();
33 const qreal h = height();
36 const qreal x = qBound(.0, pos.x(), w);
37 const qreal y = qBound(.0, pos.y(), h);
38 const qreal saturation = 1.0 - (y / h);
39 const qreal lightness = x / w;
41 return QColor::fromHslF(hue(), saturation, lightness);