Files
@ 3207d998d598
Branch filter:
Location: Diana/src/diana/templ/templ.tikz - annotation
3207d998d598
959 B
text/plain
reintroduced tikz output format
3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 3207d998d598 | \documentclass{article}
\usepackage{tikz}
\newlength{\boardSquare}
\setlength{\boardSquare}{6mm}
\begin{document}
\begin{tikzpicture}
% grid
\draw[step=\boardSquare,gray,very thin] (0,0) grid (18\boardSquare,18\boardSquare);
\draw (0,0) rectangle (18\boardSquare,18\boardSquare);
% stars
{% for y in [3,9,15] %}
{% for x in [3,9,15] %}
\filldraw[fill=black] ({{x}}\boardSquare,{{y}}\boardSquare) circle[radius=0.04];
{% endfor %}
{% endfor %}
% stones
{% for p in stones %}
\filldraw[draw=black,fill={{stone_color(p.color)}}] ({{p.x}}\boardSquare,{{p.y}}\boardSquare) circle[radius=0.5\boardSquare];
{% endfor %}
% moves
{% for p in moves -%}
\filldraw[draw=black,fill={{stone_color(p.color)}}] ({{p.x}}\boardSquare,{{p.y}}\boardSquare) circle[radius=0.5\boardSquare] node[color={{label_color(p.color)}}]{{ '{'+p.label|string+'}' }};
{% endfor %}
% labels
{% for p in labels -%}
{{labeledPoint(p)}}
{% endfor %}
\end{tikzpicture}
\end{document}
|