gray method

void gray({
  1. num level = 1.0,
  2. bool bg = false,
})

Sets the pen color to a grey scale value between 0.0 and 1.0.

Implementation

void gray({num level = 1.0, bool bg = false}) =>
    xterm(232 + (level.clamp(0.0, 1.0) * 23).round(), bg: bg);