Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from shapes import Triangle, Rectangle, Oval, Paper
- rect = Rectangle()
- rect.set_width(400)
- rect.set_height(325)
- rect.set_color("blue")
- rect.set_x(150)
- rect.set_y(75)
- rect.draw()
- ovo1 = Oval()
- ovo1.set_color("white")
- ovo1.set_width(400)
- ovo1.set_height(325)
- ovo1.set_x(150)
- ovo1.set_y(75)
- ovo1.draw()
- ovo = Oval()
- ovo.set_color("green")
- ovo.set_width(390)
- ovo.set_height(315)
- ovo.set_x(155)
- ovo.set_y(80)
- ovo.draw()
- rectw = Rectangle()
- rectw.set_width(310)
- rectw.set_height(235)
- rectw.set_color("white")
- rectw.set_x(195)
- rectw.set_y(120)
- rectw.draw()
- rectl = Rectangle()
- rectl.set_width(300)
- rectl.set_height(225)
- rectl.set_color("red")
- rectl.set_x(200)
- rectl.set_y(125)
- rectl.draw()
- tri = Triangle()
- tri = Triangle(200, 350, 500, 350, 350, 125, "black")
- tri.draw()
- Paper.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement