Difference between revisions of "Gb.display.drawRect"
From Gamebuino Wiki
(Creation) |
m (Spelling) |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
== Description == | == Description == | ||
− | Draws rectangle at a specified location. The color used is defined using <code>[[gb.display.setColor]]()</code>. | + | Draws a rectangle at a specified location. The color used is defined using <code>[[gb.display.setColor]]()</code>. |
If you specify values that cause parts of the rectangle to be off screen, then they will not be rendered. | If you specify values that cause parts of the rectangle to be off screen, then they will not be rendered. | ||
Revision as of 2014-08-04T23:46:19
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.drawLine(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