Function

Termboxattr_rgb

Declaration

TbgAttr
tbg_attr_rgb (
  uint8_t red,
  uint8_t green,
  uint8_t blue,
  TbgAttrFlags flags
)

Description

Create a truecolor RGB attribute.

The RGB channels are stored in the low 24 bits of the attribute. Termbox uses them when the output mode supports truecolor.

Parameters

red

Type: uint8_t

Red channel.

green

Type: uint8_t

Green channel.

blue

Type: uint8_t

Blue channel.

flags

Type: TbgAttrFlags

Style flags to combine with the color.

Return value

Type: TbgAttr

An attribute containing the RGB color and flags.