Skip to content

Instantly share code, notes, and snippets.

@adulau
Last active June 25, 2025 07:12
Show Gist options
  • Save adulau/6b215099c7879641bf80dd6d65350db9 to your computer and use it in GitHub Desktop.
Save adulau/6b215099c7879641bf80dd6d65350db9 to your computer and use it in GitHub Desktop.
Yinyang in tikz (LaTeX) because Saad and Emilien are annoying and Unicode is crap

Yinyang in tikz (LaTeX) because Saad and Emilien are annoying and Unicode is crap

\usepackage{tikz}

\newcommand{\yingyang}{% rotate to match your current mind state
  \begin{tikzpicture}[scale=0.2, baseline=-0.1cm, rotate=-45]
    % Outer circle (black)
    \draw[thick, fill=black] circle (1);

    % White half with S-curve and smaller circles
    \fill[white] (0,-0.5) circle (0.1);
    \fill[white]
      (0,-1) arc (-90:-270:0.5) % bottom arc
      arc (-90:90:0.5)          % inner top arc
      arc (90:270:1)            % outer large arc
      -- cycle;

    % Black dot in the white area
    \fill[black] (0,0.5) circle (0.1);
  \end{tikzpicture}%
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment