Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from shapes import Triangle, Rectangle, Oval
- oval1 = Oval()
- oval1.set_height(100)
- oval1.set_width(200)
- oval1.set_x(200)
- oval1.set_y(200)
- oval1.set_color("blue")
- oval1.draw()
- tri = Triangle(200,200, 400,200, 300, 100)
- tri.set_color("red")
- tri.draw()
- rect1 = Rectangle()
- rect1.set_x(200)
- rect1.set_y(300)
- rect1.set_width(200)
- rect1.set_height(100)
- rect1.set_color("yellow")
- rect1.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement