setBackground method

Command setBackground()

Returns a command that represents setting the background color to this.

Implementation

Command setBackground() {
  switch (this) {
    case Color.reset:
      return SetColor16.resetBackground;
    case final Color16 c:
      return SetColor16(c.backgroundIndex);
    default:
      return Command.none;
  }
}