Function libnotcurses_sys::ffi::ncplane_pulse [−][src]
pub unsafe extern "C" fn ncplane_pulse(
n: *mut ncplane,
ts: *const timespec,
fader: fadecb,
curry: *mut c_void
) -> c_int
Expand description
Pulse the plane in and out until the callback returns non-zero, relying on the callback ‘fader’ to initiate rendering. ‘ts’ defines the half-period (i.e. the transition from black to full brightness, or back again). Proper use involves preparing (but not rendering) an ncplane, then calling ncplane_pulse(), which will fade in from black to the specified colors.