Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. int robots = 5;
  2. int ax, ay, bx, by, cx, cy;
  3.  
  4.  
  5. size(1000, 800);
  6.  
  7. for(int i=robots; i>0; i=i-1){
  8.  
  9. ax=50;
  10. bx=75;
  11. cx=100;
  12.  
  13. ay=height/10*robots;
  14. by=height/10*robots - 50;
  15. cy=height/10*robots;
  16.  
  17. triangle(ax, ay, bx, by, cx, cy);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement