QColorExtensions extension

Color extensions for QUtils

on

Properties

analogousScheme List<Color>

Available on Color, provided by the QColorExtensions extension

Creates an analogous color scheme
no setter
brightness double

Available on Color, provided by the QColorExtensions extension

Gets the brightness of this color (0.0 to 1.0)
no setter
isDark bool

Available on Color, provided by the QColorExtensions extension

Checks if this color is dark (brightness <= 0.5)
no setter
isLight bool

Available on Color, provided by the QColorExtensions extension

Checks if this color is light (brightness > 0.5)
no setter
luminance double

Available on Color, provided by the QColorExtensions extension

Gets the luminance of this color
no setter
monochromaticScheme List<Color>

Available on Color, provided by the QColorExtensions extension

Creates a monochromatic color scheme
no setter
triadicScheme List<Color>

Available on Color, provided by the QColorExtensions extension

Creates a triadic color scheme
no setter

Methods

analogous({int count = 5}) List<Color>

Available on Color, provided by the QColorExtensions extension

Gets analogous colors
blend(Color other, double ratio) Color

Available on Color, provided by the QColorExtensions extension

Blends this color with another color
complement() Color

Available on Color, provided by the QColorExtensions extension

Gets the complementary color
contrastingTextColor() Color

Available on Color, provided by the QColorExtensions extension

Gets contrasting text color (black or white)
contrastRatio(Color other) double

Available on Color, provided by the QColorExtensions extension

Calculates contrast ratio with another color
darken(double amount) Color

Available on Color, provided by the QColorExtensions extension

Darkens this color by the given amount (0.0 to 1.0)
desaturate(double amount) Color

Available on Color, provided by the QColorExtensions extension

Desaturates this color by the given amount (0.0 to 1.0)
lighten(double amount) Color

Available on Color, provided by the QColorExtensions extension

Lightens this color by the given amount (0.0 to 1.0)
mix(Color other, double ratio) Color

Available on Color, provided by the QColorExtensions extension

Mix this color with another color
monochromatic({int count = 5}) List<Color>

Available on Color, provided by the QColorExtensions extension

Gets monochromatic colors
saturate(double amount) Color

Available on Color, provided by the QColorExtensions extension

Saturates this color by the given amount (0.0 to 1.0)
toHex({bool includeAlpha = true, bool includeHash = true}) String

Available on Color, provided by the QColorExtensions extension

Converts this color to a hexadecimal string
toRgbaList() List<int>

Available on Color, provided by the QColorExtensions extension

Gets the RGBA values as a list of red, green, blue, and alpha components.
toRgbList() List<int>

Available on Color, provided by the QColorExtensions extension

Gets the RGB values as a list of red, green, and blue components.
triadic() List<Color>

Available on Color, provided by the QColorExtensions extension

Gets triadic colors