Difference between revisions of "Gb.display.drawRect"
From Gamebuino Wiki
m (Spelling) |
m (Wrong syntax) |
||
Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
− | <pre>gb.display. | + | <pre>gb.display.drawRect(x, y, w, h);</pre> |
== Parameters == | == Parameters == |
Latest revision as of 2014-08-05T00:50:09
Description
Draws a rectangle at a specified location. The color used is defined using gb.display.setColor()
.
If you specify values that cause parts of the rectangle to be off screen, then they will not be rendered.
Syntax
gb.display.drawRect(x, y, w, h);
Parameters
- x: horizontal coordinate of the top left corner.
- y: vertical coordinate of the top left corner.
- w: width of the rectangle.
- h: height of the rectangle.
Returns
none