Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # A poke in the eye for Matisse!
- from shapes import Triangle, Rectangle, Oval, Paper
- rect1 = Rectangle()
- rect1.set_width(200)
- rect1.set_height(100)
- rect1.set_color("blue")
- rect1.draw()
- rect2 = Rectangle()
- rect2.set_width(50)
- rect2.set_height(150)
- rect2.set_color("yellow")
- rect2.set_x(100)
- rect2.set_y(100)
- rect2.draw()
- oval1 = Oval()
- oval1.randomize()
- oval1.draw()
- tri1 = Triangle(5,5,100,5,100,200)
- tri1.draw()
- for shape in range(100):
- tri = Triangle()
- tri.randomize()
- tri.draw()
- Paper.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement