fillRect method

void fillRect(
  1. Rectangle<num> rectangle,
  2. int color
)

Implementation

void fillRect(Rectangle<num> rectangle, int color) {
  final updateBatch = BitmapDataUpdateBatch(this);
  updateBatch.fillRect(rectangle, color);
  updateBatch.update();
}