Enum usvg::TransferFunction [−][src]
pub enum TransferFunction { Identity, Table(Vec<f64>), Discrete(Vec<f64>), Linear { slope: f64, intercept: f64, }, Gamma { amplitude: f64, exponent: f64, offset: f64, }, }
Expand description
A transfer function used by FeComponentTransfer
.
https://www.w3.org/TR/SVG11/filters.html#transferFuncElements
Variants
Keeps a component as is.
Applies a linear interpolation to a component.
The number list can be empty.
Applies a step function to a component.
The number list can be empty.
Applies a linear shift to a component.
Applies an exponential shift to a component.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TransferFunction
impl Send for TransferFunction
impl Sync for TransferFunction
impl Unpin for TransferFunction
impl UnwindSafe for TransferFunction
Blanket Implementations
Mutably borrows from an owned value. Read more