Type Alias style::values::specified::color::ColorMix

source ·
pub type ColorMix = GenericColorMix<Color, Percentage>;
Expand description

A specified color-mix().

Aliased Type§

struct ColorMix {
    pub interpolation: ColorInterpolationMethod,
    pub left: Color,
    pub left_percentage: Percentage,
    pub right: Color,
    pub right_percentage: Percentage,
    pub flags: ColorMixFlags,
}

Fields§

§interpolation: ColorInterpolationMethod§left: Color§left_percentage: Percentage§right: Color§right_percentage: Percentage§flags: ColorMixFlags

Implementations§

source§

impl ColorMix

source

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, preserve_authored: PreserveAuthored, ) -> Result<Self, ParseError<'i>>