NcFadeCtx

Type Alias NcFadeCtx 

Source
pub type NcFadeCtx = ncfadectx;
Expand description

Context for a palette fade operation

Aliased Type§

pub struct NcFadeCtx { /* private fields */ }

Implementations§

Source§

impl NcFadeCtx

Source

pub fn setup(plane: &mut NcPlane) -> &mut NcFadeCtx

NcFadeCtx constructor.

Rather than the simple ncplane_fade{in/out}(), ncfadectx_setup() can be paired with a loop over ncplane_fade{in/out}_iteration() + ncfadectx_free().

Source

pub fn free(&mut self)

Releases the resources associated.

Source

pub fn iterations(&self) -> u32

Returns the number of iterations through which will fade.