Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shapes
- shapes.Rectangle(1000, 1000, 0, 0, "black").draw()
- shapelist = []
- for j in range(100):
- add_shape = shapes.Triangle()
- add_shape.randomize()
- shapelist.append(add_shape)
- for i in range(100):
- add_shape = shapes.Rectangle()
- add_shape.randomize(0, 70)
- shapelist.append(add_shape)
- for k in range(100):
- add_shape = shapes.Oval()
- add_shape.randomize(0, 70)
- shapelist.append(add_shape)
- for shape in shapelist:
- shape.draw()
- shapes.Paper.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement