setPixel()
Set the color of one pixel.
icon.setPixel(column, row, color)
The image origin (0, 0) is at the top-left.
Parameters
icon.setPixel(column, row, color)
| Parameter | Type | Default | Description |
|---|---|---|---|
column |
int |
required | The pixel's column (its horizontal position in the image). |
row |
int |
required | The pixel's row (its vertical position in the image). |
color |
list[int] |
required | The new red, green, and blue values, for example [255, 0, 0]. |