Advertisement
Matthen

Tunnock's Teacake in Mathematica

Sep 30th, 2012
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. n = 60;
  2. Graphics[
  3. {RGBColor[0.9, 0.1, 0.1],
  4. Table[Polygon[{{0, 0}, {Cos[\[Theta]],
  5. Sin[\[Theta]]}, {Cos[\[Theta] + Pi/n], Sin[\[Theta] + Pi/n]}}]
  6. , {\[Theta], 0, 2 Pi, 2 Pi/n}],
  7. {White, Disk[{0, 0}, 0.2]}
  8. }
  9. , PlotRange -> {{-0.5, 0.5}, {-0.5, 0.5}}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement