pub enum LayerMask {
None,
LinearGradient {
angle: f32,
from: f32,
to: f32,
start: f32,
end: f32,
},
Tile(AtlasTile),
}Expand description
How a layer opened with Scene::push_layer is composited onto what
lies below it.
Variants§
None
No mask: the layer is composited with group opacity only.
LinearGradient
Alpha ramps from from to to along angle (degrees, CSS
convention: 0 = upwards, 90 = to the right) between the fractional
positions start and end of the gradient line.
Tile(AtlasTile)
An atlas tile stretched over the layer bounds. Mono tiles (glyphs, rasterized SVG masks) use their coverage, color tiles their alpha.
Trait Implementations§
impl Copy for LayerMask
impl StructuralPartialEq for LayerMask
Auto Trait Implementations§
impl Freeze for LayerMask
impl RefUnwindSafe for LayerMask
impl Send for LayerMask
impl Sync for LayerMask
impl Unpin for LayerMask
impl UnsafeUnpin for LayerMask
impl UnwindSafe for LayerMask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more