Advertisement
Matthen

Fibonacci Prime Spiral

Jul 29th, 2011
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. points = Table[{If[PrimeQ[\[Theta]], Red, Black],
  3. Disk[\[Theta] {Sin[2 Pi \[Theta] 0.618],
  4. Cos[2 Pi \[Theta] 0.618]}, 10]}, {\[Theta], 0, 1000}];
  5. frame[t_, n_] := Graphics[{
  6. points[[;; n]]
  7. }, Background -> Blend[{Red, Black}, t], ImageSize -> {300}];
  8. Manipulate[frame[t, n],
  9. {{t, 0, "Fade"}, 0, 1},
  10. {{n, 200, "Number of points"}, 1, 1000, 10}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement