Skip to content

Commit 6aaa30f

Browse files
author
Kirk
committed
updated rectangle docs
1 parent 2a8aab9 commit 6aaa30f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api_graphics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,31 @@ void line(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t clr)
6161
Draw a rectangle on the screen.
6262

6363
```c++
64-
void rectangle(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t clr)
64+
void rectangle(uint8_t x0, uint8_t y0, uint8_t width, uint8_t height, uint8_t clr)
6565
```
6666
6767
| Parameter | Type | Description |
6868
| :--- | :--- | :--- |
6969
| x0 | `uint8_t` | The start X coordinate of the rectangle - upper left corner|
7070
| y0 | `uint8_t` | The start Y coordinate of the rectangle - upper left corner|
71-
| x1 | `uint8_t` | The end X coordinate of the rectangle - lower right corner|
72-
| y1 | `uint8_t` | The end Y coordinate of the rectangle - lower right corner|
71+
| width | `uint8_t` | The width of the rectangle|
72+
| height | `uint8_t` | The height of the rectangle|
7373
| clr | `uint8_t` | **optional** The color value to draw the line. This defaults to white (1).|
7474
7575
### rectangleFill()
7676
7777
Draw a filled rectangle on the screen.
7878
7979
```c++
80-
void rectangleFill(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t clr)
80+
void rectangleFill(uint8_t x0, uint8_t y0, uint8_t width, uint8_t height, uint8_t clr)
8181
```
8282

8383
| Parameter | Type | Description |
8484
| :--- | :--- | :--- |
8585
| x0 | `uint8_t` | The start X coordinate of the rectangle - upper left corner|
8686
| y0 | `uint8_t` | The start Y coordinate of the rectangle - upper left corner|
87-
| x1 | `uint8_t` | The end X coordinate of the rectangle - lower right corner|
88-
| y1 | `uint8_t` | The end Y coordinate of the rectangle - lower right corner|
87+
| width | `uint8_t` | The width of the rectangle|
88+
| height | `uint8_t` | The height of the rectangle|
8989
| clr | `uint8_t` | **optional** The color value to draw the line. This defaults to white (1).|
9090

9191
### circle()

0 commit comments

Comments
 (0)