pub struct Canvas {
pub size: [u32; 2],
pub fps: f64,
pub duration: f64,
pub background: Track<[f64; 4]>,
pub fade: Track<f64>,
pub fade_colour: Track<[f64; 4]>,
}Expand description
The canvas: size, rate, duration, and the animated background and fade.
Fields§
§size: [u32; 2]Px.
fps: f64§duration: f64S.
background: Track<[f64; 4]>sRGB 0..1 (alpha ignored).
fade: Track<f64>1 = the picture, 0 = fade_colour.
fade_colour: Track<[f64; 4]>Trait Implementations§
impl StructuralPartialEq for Canvas
Auto Trait Implementations§
impl Forget for Canvas
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnsafeUnpin for Canvas
impl UnwindSafe for Canvas
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