FillRect
Returns a pixmap with a rectangular region filled with a solid colour.
Syntax
-
FillRect(pm, x, y, w, h[, c])-
pmis a pixmap -
x,y,w, andhare non-negative integers -
cis a colour
-
Description
FillRect(pm, x, y, w, h, c) returns pm with the rectangular region having (x, y) as its top-left corner, width w, and height h, filled will c. If omitted, c defaults to black.
Examples
pm ≔ CreatePixmap(400, 400);
for(i, 1, 10000,
(pm ≔ FillRect
(
pm,
RandomInt(400), RandomInt(400),
RandomInt(20), RandomInt(20),
RandomColor()
)
)
);
pm
