Fibonacci sequence
Fibonacci sequences on top of each other. I hope you like the mathematics, beauty and customisation of this design.
I did this as a way for me to get used to IF, but as always I add some sort of cutomisation. you can change the number of sequences and how far away they are from each other.
A fibonacci sequence goes: 1, 1, 2(1+1), 3(1+2), 5(2+3), 8(3+5), 13(5+8), 21(8+13) ...
The code and the world are below, please feel free to use it:
CS ;BY MATHSKID ;how many fibonacci sequences MAKE "reptimes 1 ;distance between fibonacci sequences MAKE "distance 1 TO fibon :v :v2 IF :v > 100 [STOP] PD FD :v RT 90 fibon :v2 :v+:v2 END REPEAT :reptimes[fibon 0.1 0.1 PU FD 44.1 RT 90 FD 71.4 LT 90 FD :distance EAST :distance]
please coment to tell me whats good or bad or if you have any ideas
- mathskid's blog
- Login or register to post comments
- 7963 reads
Comments
Thumb up
This is cool,
But when I try your codes, I get something different like the image below. Do you know why?
sorry
sorry i'll edit that, i changed some of the variables in the code.