fillRect method

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

Implementation

void fillRect(Rectangle<num> rectangle, int color) {
  _renderContext.setTransform(_drawMatrix);
  _renderContext.rawContext.fillStyle = color2rgba(color);
  _renderContext.rawContext.fillRect(
      rectangle.left, rectangle.top, rectangle.width, rectangle.height);
}