ColorUtils is a class that offers utilities for working with items and obtaining colours meaningful for UI usage, offering the following items as a start:
- QColor averageColorForItem(QQuickItem*, int) - Obtains the average colour of an item, ignoring transparent pixels
- Brightness brightnessForItem(QQuickItem*) - Obtains the brightness of an item
- QColor alphaBlend(QColor foreground, QColor background) - Gets the colour of overlaying a transparent foreground on a background
- QColor linearInterpolation(QColor, QColor, double) - Linearly interpolates between two colours
- QColor adjustColor(QColor, adjustments) - Adjusts the color by fixed values
- QColor scaleColor(QColor, adjustments) - Scales the color's values