# kolam-tikz

A coordinate-first TikZ grammar for pulli kolam, the South Indian drawing in
which a strand loops around a grid of dots (pulli).

A drawing is declared as integer pulli coordinates and a state, open or
closed, for each gate between two neighbouring pulli; every undeclared gate is
closed. The package constructs the strands from these declarations, with
circular turns and straight tracks that meet tangentially, so a source file
states exactly which drawing it makes.

```latex
\usepackage{kolam-tikz}
...
\begin{tikzpicture}[kolam grid]
  \begin{kolam}
    \KolamPulli{0}{0} \KolamPulli{1}{0}
    \KolamOpenGate{0}{0}{1}{0}
    \KolamRender
  \end{kolam}
\end{tikzpicture}
```

The package also draws partial-instance diagrams (free, prescribed open and
prescribed closed gates) for figures in papers, and checks the Drop-Fan
condition. See `kolam-tikz-doc.pdf`.

Requires LaTeX2e with TikZ; works with pdfLaTeX, LuaLaTeX and XeLaTeX.

## Files

- `kolam-tikz.sty`: the package
- `kolam-tikz-doc.tex`, `kolam-tikz-doc.pdf`: the manual, and the images it
  includes (`gallery.png`, `05-one-stroke-21.pdf`, `07-nine-row-diamond.pdf`)

Source, examples and an independent auditor (Python) are at
https://github.com/aalok-thakkar/kolam-tikz.

## License

MIT License; see `LICENSE`. Copyright 2026 the kolam-tikz contributors.
