Advertisement
Matthen

Fibonacci Rotation

Sep 3rd, 2015
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. f[i_] := ColorData["DarkRainbow"][i];
  2. Manipulate[
  3. If[\[Phi], \[Theta] = Pi (Sqrt[5] - 1)/4];
  4. Graphics[
  5. Reverse@Table[
  6. {f[1 - i/n],
  7. Rotate[Scale[Rectangle[{-1, -1}, {1, 1}], (i/n)^2],
  8. i \[Theta], {0, 0}]}
  9. , {i, n}]
  10. , PlotRange -> 1.5, Background -> f[0]],
  11. {{n, 50}, 1, 100, 1},
  12. {\[Theta], 0, Pi/2},
  13. {\[Phi], {False, True}}
  14. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement