rectf

fnvoid rectf(int x, int y, int w, int h) nothrow @nogc

Draws a filled rectangle.

Parameters

xX position of top-left corner
yY position of top-left corner
wWidth
hHeight Example:
color(0, 255, 0);  // Green
rectf(10, 10, 80, 60);  // Filled green rectangle
fnvoid rectf(int x, int y, int w, int h, ubyte r, ubyte g, ubyte b) nothrow @nogc

Draws a filled rectangle with a specific color.

This is more efficient than calling color() followed by rectf().

Parameters

xX position of top-left corner
yY position of top-left corner
wWidth
hHeight
rRed component (0-255)
gGreen component (0-255)
bBlue component (0-255)