fgRgb function

String fgRgb(
  1. int r,
  2. int g,
  3. int b
)

Set color to foreground by RGB.

See also fgRgbOpen.

Implementation

String fgRgb(int r, int g, int b) {
  assert(r >= 0 && r <= 255, _colorComponentAssert);
  assert(g >= 0 && g <= 255, _colorComponentAssert);
  assert(b >= 0 && b <= 255, _colorComponentAssert);
  return '$fgRgbOpen$r;$g;$b$fgRgbClose';
}