Python blurred image creation, to create a beautifully colored painting from black to white
问题 on Pyhton I wanted to create a picture that goes from black to white, and I wrote the following code. But I think I'm doing a very small mistake, and that's the result. I actually wanted to create a similar image. Can you see where I made a mistake? import numpy as np from PIL import Image width = 100 height = 100 img = np.zeros((height, width), dtype=np.uint8) xx, yy=np.mgrid[:height, :width] circle = (xx - 50)**2 + (yy- 50)**2 for x in range (img.shape[0]): for y in range (img.shape[1]):