gray function
- int g
Returns the color index from 256-color table by gray level (g: 0..23).
Grayscale from dark to light in 24 steps.
Implementation
int gray(int g) {
assert(g >= 0 && g <= 23, 'The gray color must be in the range 0..23');
return 232 + g;
}