Drawing::polygon()
A filled polygon.
Examples
Syntax
Java
.polygon(x, y, color)
Parameters
| Name | Data Type | Description |
|---|---|---|
| x | double[] | x of every corner |
| y | double[] | y of every corner |
| color | Color | the fill |
Return
void
A filled polygon.
.polygon(x, y, color)
| Name | Data Type | Description |
|---|---|---|
| x | double[] | x of every corner |
| y | double[] | y of every corner |
| color | Color | the fill |
void