pub struct PaintCtx {
pub time: f64,
pub scenario_time: f64,
pub scene_duration: f64,
pub frame_index: u32,
pub fps: u32,
pub video_width: u32,
pub video_height: u32,
pub stagger_offset: f64,
}Expand description
Frame-level info passed into every paint call.
Fields§
§time: f64Seconds since this scene started. What animation progress, reveals and every timed effect are expressed in.
scenario_time: f64Seconds since the start of the scenario (of the view, in a world
view). Only the audio-reactive painters need it — the audio analysis is
indexed on that timeline, not on each scene’s own.
scene_duration: f64§frame_index: u32§fps: u32§video_width: u32§video_height: u32§stagger_offset: f64Stagger offset accumulated by parent containers (seconds).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaintCtx
impl RefUnwindSafe for PaintCtx
impl Send for PaintCtx
impl Sync for PaintCtx
impl Unpin for PaintCtx
impl UnsafeUnpin for PaintCtx
impl UnwindSafe for PaintCtx
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more