I tried to draw a simple 10x10 black image with a single red pixel at the 8,8 coordinate.
This was my attempt:
from PIL import Image
import numpy as np
foo = np.zeros([10,10,3])
foo[8,8] = [255,0,0] # Draw a red pixel
img = Image.fromarray(foo, 'RGB')
img.save('out.png')
Sadly for some reason the entire image stays black (enlarged):
When printing "foo" the [255,0,0] entry is there, so I am confused on what is wrong here.
