AnimationRenderer

Trait AnimationRenderer 

Source
pub trait AnimationRenderer<C: PixelColor> {
    // Required methods
    fn needs_frame_update(&self) -> bool;
    fn frame_rate(&self) -> u32;
    fn set_frame_rate(&mut self, fps: u32);
}
Expand description

Trait for chart renderers that support animation frame rendering

Required Methods§

Source

fn needs_frame_update(&self) -> bool

Check if the renderer needs frame updates

Source

fn frame_rate(&self) -> u32

Get the current frame rate (FPS)

Source

fn set_frame_rate(&mut self, fps: u32)

Set the target frame rate

Implementors§