kburnik

Logo - Zadatak Cvijet (Zup 2013)

Feb 26th, 2013
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. to cvijet :k :m :n :a :b :c
  2. make "alfa 90 - 180/:k
  3. make "beta (360/:k)/(:m-1)
  4. make "gama 90 - 180/:n
  5. make "delta 90-180/:k
  6.  
  7. rt :delta
  8. repeat :k [
  9.  
  10. make "kut 90 + :beta*((:m-2)/2)
  11. repeat :m-1 [
  12. fd :a/:m
  13.  
  14. lt :kut
  15. fd :b lt :gama
  16. repeat :n [fd :c rt 360/:n]
  17. rt :gama bk :b
  18. rt :kut
  19.  
  20. make "kut :kut - :beta
  21.  
  22. ]
  23. fd :a/:m
  24.  
  25. lt :delta
  26. fd :b lt :gama repeat :n [fd :c rt 360/:n] rt :gama bk :b
  27. rt :delta
  28.  
  29. rt 360/:k
  30.  
  31. ]
  32.  
  33. 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.

×