Type Alias zng_color::gradient::RenderExtendMode

source ·
pub type RenderExtendMode = ExtendMode;
Expand description

Gradient extend mode supported by the render.

Note that ExtendMode::Reflect is not supported directly, you must duplicate and mirror the stops and use the Repeat render mode.

Aliased Type§

enum RenderExtendMode {
    Clamp = 0,
    Repeat = 1,
}

Variants§

§

Clamp = 0

§

Repeat = 1

Trait Implementations§

source§

impl From<ExtendMode> for RenderExtendMode

source§

fn from(mode: ExtendMode) -> Self

Reflect is converted to Repeat, you need to prepare the color stops to repeat reflecting.