kburnik

Logo - Zadatak Pretezak

Feb 23rd, 2013
52
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×