rectf
fn
void rectf(int x, int y, int w, int h) nothrow @nogcDraws a filled rectangle.
Parameters
x | X position of top-left corner |
y | Y position of top-left corner |
w | Width |
h | Height Example: |
fn
void rectf(int x, int y, int w, int h, ubyte r, ubyte g, ubyte b) nothrow @nogcDraws a filled rectangle with a specific color.
This is more efficient than calling color() followed by rectf().
Parameters
x | X position of top-left corner |
y | Y position of top-left corner |
w | Width |
h | Height |
r | Red component (0-255) |
g | Green component (0-255) |
b | Blue component (0-255) |