Enum tiny_skia::SpreadMode
source · [−]pub enum SpreadMode {
Pad,
Reflect,
Repeat,
}
Expand description
A shader spreading mode.
Variants
Pad
Replicate the edge color if the shader draws outside of its original bounds.
Reflect
Repeat the shader’s image horizontally and vertically, alternating mirror images so that adjacent images always seam.
Repeat
Repeat the shader’s image horizontally and vertically.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpreadMode
impl Send for SpreadMode
impl Sync for SpreadMode
impl Unpin for SpreadMode
impl UnwindSafe for SpreadMode
Blanket Implementations
Mutably borrows from an owned value. Read more