Function libnotcurses_sys::c_api::ncchannels_reverse
source · [−]pub fn ncchannels_reverse(
channels: impl Into<NcChannels_u64> + Copy
) -> NcChannels_u64
Expand description
Returns the NcChannels_u64
with the fore- and background’s color information
swapped, but without touching housekeeping bits.
Alpha is retained unless it would lead to an illegal state: HIGHCONTRAST
,
TRANSPARENT
and BLEND
are taken to OPAQUE
unless the new value is RGB.
Method: NcChannels.reverse()