I\'m using numpy to initialize a pixel array to a gray checkerboard (the classic representation for \"no pixels\", or transparent). It seems like there ought to be a whizzy
Simplest implementation of the same.
import numpy as np n = int(input()) checkerboard = np.tile(np.array([[0,1],[1,0]]), (n//2, n//2)) print(checkerboard)