Consistently use qreal in libs/pigment
qreal is implicitly treated like a double in libs/pigment in various places.
Update all necessary functions to accept qreal instead of double or float.
Reviewed By: danders
Differential Revision: https://phabricator.kde.org/D15053