pub struct Step { /* private fields */ }
Expand description
One step of an animation.
Implementations§
source§impl Step
impl Step
sourcepub fn with_true_color(raster: Raster<SRgba8>) -> Self
pub fn with_true_color(raster: Raster<SRgba8>) -> Self
Create an animation step with a true color raster.
sourcepub fn with_indexed(raster: Raster<Gray8>, palette: Palette) -> Self
pub fn with_indexed(raster: Raster<Gray8>, palette: Palette) -> Self
Create an animation step with an indexed raster.
sourcepub fn with_disposal_method(self, method: DisposalMethod) -> Self
pub fn with_disposal_method(self, method: DisposalMethod) -> Self
Adjust the disposal method.
sourcepub fn with_transparent_color(self, clr: Option<u8>) -> Self
pub fn with_transparent_color(self, clr: Option<u8>) -> Self
Adjust the transparent color.
sourcepub fn transparent_color(&self) -> Option<u8>
pub fn transparent_color(&self) -> Option<u8>
Get the transparent color
sourcepub fn with_delay_time_cs(self, delay: Option<u16>) -> Self
pub fn with_delay_time_cs(self, delay: Option<u16>) -> Self
Adjust the delay time.
sourcepub fn delay_time_cs(&self) -> Option<u16>
pub fn delay_time_cs(&self) -> Option<u16>
Get the delay time in centiseconds
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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