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
Type: int

Left edge of the rect

y
Type: int

Top edge of the rect

w
Type: uint

Width of the rect

h
Type: uint

Height of the rect

filled
Type: int

If true the rect will be filled

empty
Type: int

If true the rect will be empty

invert
Type: int

If true the colours will be inverted.

Examples

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

Meta