![example picture for set_np_pixels()](/images/reference/Sketch_set_np_pixels_0.png)
```python
import numpy as np
def setup():
array = np.zeros((py5.height, py5.width, 3), dtype=np.uint8)
array[:60, :, 0] = 200
array[:, :40, 1] = 100
array[20:, :, 2] = 250
py5.set_np_pixels(array, bands='RGB')
```