toRGB

Convert a color to RGB form. This is useful to convert palette based colors to their full RGB values, which will provide fidelity when the terminal supports it, but consequently does not honor terminal preferences for color palettes.

pure
toRGB

Parameters

c Color

a valid Color

Return Value

Type: Color

An RGB format Color, Color.invalid if it cannot be determined.

Meta