Skip to content

Instantly share code, notes, and snippets.

@KernelA
Created September 30, 2023 15:01
Show Gist options
  • Save KernelA/7217b36495d2c5da05093eca69d57eff to your computer and use it in GitHub Desktop.
Save KernelA/7217b36495d2c5da05093eca69d57eff to your computer and use it in GitHub Desktop.
fig1
\documentclass[tikz]{standalone}
\usepackage{tikz}
\usetikzlibrary{math}
\begin{document}
\begin{tikzpicture}
\tikzmath { \total = 6; }
\draw [help lines] (0,0) grid (\total, \total);
\foreach \row in {1,2,...,\total}
\foreach \x in {1,...,\row} {
\filldraw (\x,\row) circle [radius=0.25];
}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment