Advertisement
Faiakes

Drawing

Jul 8th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. from shapes import Triangle, Rectangle, Oval
  2.  
  3. oval1 = Oval()
  4. oval1.set_height(100)
  5. oval1.set_width(200)
  6. oval1.set_x(200)
  7. oval1.set_y(200)
  8. oval1.set_color("blue")
  9. oval1.draw()
  10.  
  11. tri = Triangle(200,200, 400,200, 300, 100)
  12. tri.set_color("red")
  13. tri.draw()
  14.  
  15. rect1 = Rectangle()
  16. rect1.set_x(200)
  17. rect1.set_y(300)
  18. rect1.set_width(200)
  19. rect1.set_height(100)
  20. rect1.set_color("yellow")
  21. rect1.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement