ColorExtensions extension
- on
Methods
-
adjustLightness(
double value) → Color -
Available on Color, provided by the ColorExtensions extension
Adjusts the lightness of a color by the specified value while maintaining its hue and saturation. -
dimmed(
) → Color -
Available on Color, provided by the ColorExtensions extension
Returns a new color with reduced opacity to create a dimmed effect. -
disabled(
) → Color -
Available on Color, provided by the ColorExtensions extension
Returns a new color with reduced opacity to indicate a disabled state. -
estimateBrightness(
) → Brightness -
Available on Color, provided by the ColorExtensions extension
Calculates whether a color should be considered light or dark based on its relative luminance value -
withTransparency(
double opacity) → Color -
Available on Color, provided by the ColorExtensions extension
Creates a new color with the specified opacity while maintaining the original RGB values