Expand description
Modules§
- colors
- Named primary, secondary and tertiary colors.
- filter
- Color filter effect.
- gradient
- Gradient types.
- web_
colors - Named web colors.
Macros§
- hex
- Hexadecimal color literal.
- stops
- Creates a
GradientStops
containing the arguments.
Structs§
- Hsla
- HSL + alpha.
- Hsva
- HSV + alpha
- Light
Dark - Represents a dark and light color.
- PreMul
Rgba - Pre-multiplied RGB + alpha.
- Rgba
- RGB + alpha.
- Rgba
Component - Color functions argument conversion helper.
Enums§
- Color
Scheme - Color scheme preference.
- Lerp
Space - Defines the color space for color interpolation.
- MixBlend
Mode - Color mix blend mode.
Statics§
- COLOR_
SCHEME_ VAR - Defines the preferred color scheme in a context.
Traits§
- Light
Dark VarExt - Extension methods for
impl Var<LightDark>
. - MixAdjust
- Color mix and adjustment methods.
Functions§
- hsl
- HSL color, opaque, alpha is set to
1.0
. - hsla
- HSLA color.
- hsla_
linear_ sampler - Animation sampler that sets the
lerp_space
toLerpSpace::HslaLinear
. - hsla_
sampler - Animation sampler that sets the
lerp_space
toLerpSpace::Hsla
. - hsv
- HSV color, opaque, alpha is set to
1.0
. - hsva
- HSVA color.
- lerp_
rgba - Default implementation of lerp for
Rgba
in apps. - lerp_
space - Gets the lerp space used for color interpolation.
- light_
dark - RGBA color pair.
- rgb
- RGB color, opaque, alpha is set to
1.0
. - rgba
- RGBA color.
- rgba_
sampler - Animation sampler that sets the
lerp_space
toLerpSpace::Rgba
. - with_
lerp_ space - Calls
f
withlerp_space
set tospace
.
Type Aliases§
- Render
MixBlend Mode - Webrender
MixBlendMode
.