pub struct ShaderTransition { /* private fields */ }Expand description
A transition drawn by a shader preset from both scenes’ pixels.
Built with oxframe::shaders::water_wipe() and passed to
Transition::shader.
Implementations§
Source§impl ShaderTransition
impl ShaderTransition
Sourcepub fn water_wipe() -> Self
pub fn water_wipe() -> Self
A wavy waterline rises over the frame. Below it is the incoming scene, rippled near the line as if seen through water.
Sourcepub fn wave(self, height: f64) -> Self
pub fn wave(self, height: f64) -> Self
Height of the waves on the line, as a fraction of the frame height. The default is 0.04; 0 is a straight line.
Sourcepub fn wave_height(self) -> f64
pub fn wave_height(self) -> f64
The wave height set with wave.
Trait Implementations§
Source§impl Clone for ShaderTransition
impl Clone for ShaderTransition
impl Copy for ShaderTransition
Source§impl Debug for ShaderTransition
impl Debug for ShaderTransition
Source§impl PartialEq for ShaderTransition
impl PartialEq for ShaderTransition
impl StructuralPartialEq for ShaderTransition
Auto Trait Implementations§
impl Freeze for ShaderTransition
impl RefUnwindSafe for ShaderTransition
impl Send for ShaderTransition
impl Sync for ShaderTransition
impl Unpin for ShaderTransition
impl UnsafeUnpin for ShaderTransition
impl UnwindSafe for ShaderTransition
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