Advertisement
Matthen

Disk image

Jun 25th, 2013
1,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. phi = 0.5 (Sqrt[5] + 1);
  2. m = 500; n = 40 ;
  3. ps = Table[{Sin[\[Theta]], Cos[\[Theta]]}, {\[Theta], 0, 2 Pi,
  4. 2 Pi/n}];
  5. f = Interpolation[Transpose[{Range[0, n], ps}],
  6. InterpolationOrder -> 1];
  7. Graphics[{
  8. EdgeForm[Directive[RGBColor[0.1, 0.2, 0.25], Opacity[0.1]]],
  9. FaceForm[], Polygon[ps],
  10. Table[Polygon[
  11. Table[f[Mod[ (i + phi m t) i, n, 0]], {i, 0, n}]], {t, 0, 1,
  12. 1/m}]
  13. }
  14. , ImageSize -> 1000, Background -> None]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement