pub type NcFadeCtx = ncfadectx;Expand description
Context for a palette fade operation
Aliased Type§
pub struct NcFadeCtx { /* private fields */ }Implementations§
Source§impl NcFadeCtx
impl NcFadeCtx
Sourcepub fn setup(plane: &mut NcPlane) -> &mut NcFadeCtx
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().
Sourcepub fn iterations(&self) -> u32
pub fn iterations(&self) -> u32
Returns the number of iterations through which will fade.