Drawing::image()
An image at its own size, centred on a point.
Examples
Syntax
Java
.image(path, x, y)
.image(path, x, y, width, height)
Parameters
| Name | Data Type | Description |
|---|---|---|
| path | String | an image file or a built-in sprite name |
| x | double | x of its centre |
| y | double | y of its centre |
| width | double | the width |
| height | double | the height |
Return
void