![gradient-np. zeros ( (256, 256,3), dtype-np.uint8) for x in range (256): for y in range (256): gradient [ y , x] [ 0 , y, 198] # Red#x, Green-128, Blue-0 ing image. fromarray (gradient) # Create an image from the array. display (img)](../../../media.cheggcdn.com/media/9cb/9cb01c19-6cd1-4e54-8d94-32c0067072de/php73pYdN.png)
how can I change this code in order for the gradient square tohave blue on the top and red on the bottom.
gradient-np. zeros ( (256, 256,3), dtype-np.uint8) for x in range (256): for y in range (256): gradient [ y , x] [ 0 , y, 198] # Red#x, Green-128, Blue-0 ing image. fromarray
PayPal Gateway not configured
PayPal Gateway not configured