ColorExtensions extension
- on
Methods
-
darken(
[double amount = .1]) → Color -
Available on Color, provided by the ColorExtensions extension
Darkens the color byamount
(0.0 to 1.0) -
frostedEffect(
{double opacity = 0.5, double frostingFactor = 0.1}) → Color -
Available on Color, provided by the ColorExtensions extension
Creates a frosted glass effect with a slight blur and transparency.opacity
determines transparency andfrostingFactor
applies the blur-like effect. -
glassEffect(
{double opacity = 0.5, double brightnessFactor = 0.2}) → Color -
Available on Color, provided by the ColorExtensions extension
Creates a glass-like effect by combining transparency and brightness adjustment. Theopacity
controls the transparency andbrightnessFactor
adjusts the brightness. -
glossyFrosted(
{double opacity = 0.5, double glossFactor = 0.3}) → Color -
Available on Color, provided by the ColorExtensions extension
Combines a glossy and frosted effect for a more vivid glass-like look. -
glossyTransparent(
double opacity) → Color -
Available on Color, provided by the ColorExtensions extension
Creates a true transparent color with a glossy effect. Theopacity
value ranges from 0.0 (completely transparent) to 1.0 (fully opaque). -
lighten(
[double amount = .1]) → Color -
Available on Color, provided by the ColorExtensions extension
Lightens the color byamount
(0.0 to 1.0)