Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from shapes import Triangle, Rectangle
- rect = Rectangle()
- rect.set_width(300)
- rect.set_height(200)
- rect.set_x(150)
- rect.set_y(300)
- rect.set_color("brown")
- rect.draw()
- tri = Triangle(150, 300, 200,200, 200, 300)
- tri.set_color("brown")
- tri.draw()
- tri = Triangle(400, 300, 400, 200, 450, 300)
- tri.set_color("brown")
- tri.draw()
- rect.set_x(200)
- rect.set_y(200)
- rect.set_width(200)
- rect.set_height(100)
- rect.draw()
- rect.set_x(170)
- rect.set_y(325)
- rect.set_width(60)
- rect.set_height(40)
- rect.set_color("white")
- rect.draw()
- rect.set_x(170)
- rect.set_y(425)
- rect.set_width(60)
- rect.set_height(40)
- rect.set_color("white")
- rect.draw()
- rect.set_x(360)
- rect.set_y(325)
- rect.set_width(60)
- rect.set_height(40)
- rect.set_color("white")
- rect.draw()
- rect.set_x(360)
- rect.set_y(425)
- rect.set_width(60)
- rect.set_height(40)
- rect.set_color("white")
- rect.draw()
- rect.set_x(280)
- rect.set_y(325)
- rect.set_width(40)
- rect.set_height(40)
- rect.set_color("white")
- rect.draw()
- rect.set_x(280)
- rect.set_y(420)
- rect.set_width(40)
- rect.set_height(80)
- rect.set_color("blue")
- rect.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement