gray

fun gray(fraction: Number): TextStyle

Create a grayscale color code from a fraction in the range \[0, 1].

Parameters

fraction

The fraction of white in the color. 0 is pure black, 1 is pure white.