Skip to content

Instantly share code, notes, and snippets.

@seungwonpark
Created March 30, 2017 15:58
Show Gist options
  • Save seungwonpark/a4754d0db09698572ee471e004d49e70 to your computer and use it in GitHub Desktop.
Save seungwonpark/a4754d0db09698572ee471e004d49e70 to your computer and use it in GitHub Desktop.
Profile picture(made with tikz)
\documentclass{standalone}
\usepackage{tikz,pgffor}
\usetikzlibrary{spy}
\begin{document}
\begin{tikzpicture}
[spy using overlays={circle, magnification=1.0,size=150}]
\fill[color=black] (0,0) rectangle (10,10);
\filldraw[fill=white, draw=black] (5,5) circle [radius=5];
\foreach \i in {5,15,...,355}{
\fill[black] (5,5) -- ( {5+5*cos(\i)} , {5+5*sin(\i)} ) arc [start angle = \i, end angle = \i+5, radius = 5] -- (5,5);
}
\spy[black] on (4,5) in node at (5,5);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment