back to stills page

7B: Create a generally smooth gradation of white to black, from left to right using only a 100 percent black pen.

def triangle (x, y):
 g.line(x, y+ 50, 100, y)
 g.line(x, y-50, 100, y)
for a in range (0, 20):
 for b in range (0, 10):
  triangle(a*5, b*10)