Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from shapes import Triangle, Rectangle, Oval,Paper
- import time
- for i in range(10):
- rect1 = Rectangle()
- rect1.randomize()
- rect1.draw()
- oval1 = Oval()
- oval1.randomize()
- oval1.set_color("#9a00c1")
- oval1.draw()
- tri = Triangle()
- tri.randomize()
- tri.draw()
- rect2 = Rectangle()
- rect2.set_width(200)
- rect2.set_height(100)
- rect2.set_color("blue")
- rect2.draw()
- '''
- tri2 = Triangle()
- tri2.set_width(150)
- tri2.set_height(45)
- tri2.set_color("green")
- tri2.set_x(200)
- tri2.set_y(100)
- tri2.draw()
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement