# Numpy as N
self.checkered = N.zeros((550, 550, 3))
# Variables Used In Array Slice
left = 0
right = 50
bottom = 0
top = 50
for num in range(100):
if top < 600:
self.check[left:right, bottom:top] = (255, 255, 255)
top += 100
bottom += 100
else:
left += 50
right += 50
if right % 100 == 0:
top = 100
bottom = 50
else:
top = 50
bottom = 0
self.surface = pygame.surfarray.make_surface(self.checkered)
Here's my solution. I feel that I may have missed a much more effective method. I also think I might have completely missed the point of array slicing by using a for loop. I had trouble understanding the pygame surfarray intro tutorial.
