Function libnotcurses_sys::ncchannels_set_fg_rgb8[][src]

pub fn ncchannels_set_fg_rgb8(
    channels: &mut NcChannels,
    r: NcComponent,
    g: NcComponent,
    b: NcComponent
) -> NcChannels
Expand description

Sets the three foreground RGB NcComponents of an NcChannels, and marks it as NOT using the “default color”, retaining the other bits unchanged.

Unlike the original C API, it also returns the new NcChannels.

Method: NcChannels.set_fg_rgb8()