Advertisement
Guest User

my_drawing.py

a guest
Feb 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import shapes
  2.  
  3. shapes.Rectangle(1000, 1000, 0, 0, "black").draw()
  4.  
  5. shapelist = []
  6.  
  7. for j in range(100):
  8.     add_shape = shapes.Triangle()
  9.     add_shape.randomize()
  10.     shapelist.append(add_shape)
  11.  
  12. for i in range(100):
  13.     add_shape = shapes.Rectangle()
  14.     add_shape.randomize(0, 70)
  15.     shapelist.append(add_shape)
  16.  
  17. for k in range(100):
  18.     add_shape = shapes.Oval()
  19.     add_shape.randomize(0, 70)
  20.     shapelist.append(add_shape)
  21.  
  22. for shape in shapelist:
  23.     shape.draw()
  24.  
  25. shapes.Paper.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement