fillRect method
Fill a rectangle (x
,y
, width
x height
).
Implementation
@override
void fillRect(num x, num y, num width, num height, PStyle style) {
x = transform.x(x);
y = transform.y(y);
x = canvasX(x);
y = canvasY(y);
width = canvasX(width);
height = canvasY(height);
if (width <= 0 || height <= 0) return;
_setFillStyle(style);
_ctx.fillRect(x, y, width, height);
}