Debian Codegraph @

texmf-dist/doc/latex/tikzscale/alt.tikz

raw
1 \begin{tikzpicture}
2 \draw (0,0) rectangle (5,5);
3 \alt<2> {\draw (0,0) -- ++(5,5) -- ++(-2.5, 2.5) -- ++(-2.5, -2.5) -- (5,0);}
4 {\draw (0,0) -- ++(5,5) ++(-5, 0) -- ++(5,-5);}
5 \end{tikzpicture}