def drawCT1(app, m, n):
d = app.width
x = 0
y = 0
for i in range(n):
if i%2 == 0:
color = 'black'
else:
color = 'white'
drawRect(x, y, d, d, fill=color, border='black')
d-= m
x += m//2
y += m//2
drawLabel("112 Rocks", app.width//2, app.height//2, align='center', fill='black')
def redrawAll(app):
drawCT1(app, 100, 4)
runApp()
Given that the box below is your canvas, with a width and height of 400 each, draw what the above code would display. You can assume that this is called within the appropriate graphics helper code.
Hint: Each of the small boxes on the canvas is 50x50 pixels.