color

fun color(color: Color, level: AnsiLevel = TRUECOLOR): TextStyle

Create a TextStyle with a foreground of color, downsampled to a given level.

It's usually easier to use a function like rgb or hsl instead.