Posted By


osjerick on 09/13/16

Tagged


Statistics


Viewed 125 times
Favorited by 0 user(s)

Ninio's Extinction Illussion


/ Published in: LaTeX
Save to your folder(s)

A way to draw the Ninio's Extinction Illusion.


Copy this code and paste it in your HTML
  1. \documentclass[tikz]{standalone}
  2.  
  3. \begin{document}
  4. \begin{tikzpicture}
  5. \tikzset{dot/.style={minimum size=5.5pt, draw=white, line width=.5pt, fill=black, circle, inner sep=0pt}}
  6. \clip (0.5, 0.5) rectangle (13.5, 9.5);
  7. \draw[gray!90, line width=3pt] (0.5, 0.5) grid (13.5, 9.5);
  8. \draw[gray!90, step=sqrt(2), line width=3pt, rotate=-45] (-7, 0.5) grid (9.5, 16.5);
  9.  
  10. \foreach \x in {1,5,...,13} {
  11. \foreach \y in {1,5,...,9} {
  12. \node[dot] at (\x,\y) {};
  13. }
  14. }
  15. \end{tikzpicture}
  16. \end{document}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.