Algosim documentation: FillRect

FillRect

Returns a pixmap with a rectangular region filled with a solid colour.

Syntax

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

Image 1