setBg method

void setBg(
  1. Color color
)

Set background to a named color.

Implementation

void setBg(Color color) {
  bg = color;
  bgRgb = null;
  bgIndexed = null;
}