fillBox method
void
fillBox(})
Fills a rectangular box in sub-pixel coordinates.
Implementation
void fillBox(
int x,
int y,
int width,
int height, {
bool value = true,
bool antiAliased = true,
Style? cellStyle,
}) {
if (width <= 0 || height <= 0) return;
for (var py = y; py < y + height; py++) {
for (var px = x; px < x + width; px++) {
setPixel(px, py, value, antiAliased: antiAliased, cellStyle: cellStyle);
}
}
}