setFg method

void setFg(
  1. Color color
)

Set foreground to a named color.

Implementation

void setFg(Color color) {
  fg = color;
  fgRgb = null;
  fgIndexed = null;
}