Advertisement
kburnik

Logo - Zadatak Pretezak

Feb 23rd, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ;; https://www.dropbox.com/s/22pq7svlqiv4zp4/pretezak.pdf
  2.  
  3. to pretezak :d :x :y :z
  4. localmake "visina 0
  5.  
  6. cs rt 90
  7. repeat 3 [ fd :d lt 120 if ycor > :visina [ make "visina ycor ] ]
  8.  
  9. localmake "vsum :visina
  10. localmake "sum :x + :y + :z
  11.  
  12. localmake "A ( :x / :sum ) * :vsum
  13. localmake "B ( :y / :sum ) * :vsum
  14. localmake "C ( :z / :sum ) * :vsum
  15.  
  16. pu fd :d rt 150 fd :B rt 90
  17.  
  18. while [ ycor < :A ] [ fd 1 ]
  19.  
  20. pd
  21.  
  22. rt 90 fd :B bk :B
  23. rt 120 fd :A bk :A
  24. rt 120 fd :C bk :C
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement