Drw.rect

Draw a rectangle to the X display using the current settings. Note that filled and empty are not mutually exclusive.

struct Drw
void
rect
(
int x
,
int y
,
uint w
,
uint h
,
int filled
,
int empty
,
int invert
)

Parameters

x int

Left edge of the rect

y int

Top edge of the rect

w uint

Width of the rect

h uint

Height of the rect

filled int

If true the rect will be filled

empty int

If true the rect will be empty

invert int

If true the colours will be inverted.

Examples

drw.rect(10, 10, 90, 90, true, false, false);

Meta