setBackground method

  1. @override
void setBackground(
  1. int x,
  2. int y,
  3. int bg
)
override

Sets background color at coordinates.

Implementation

@override
void setBackground(int x, int y, int bg) {
  if (x >= 0 && x < bounds.width && y >= 0 && y < bounds.height) {
    parent.setBackground(bounds.x + x, bounds.y + y, bg);
  }
}