[Tex/LaTex] Rotate curly brace in tikz

rotatingtikz-pgf

I found this question that shows how to draw curly braces in tikz and to mirror them using decorations. But, how can they be rotated an arbitrary angle?
.

Best Answer

\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.pathreplacing}

\begin{document}

\begin{tikzpicture}
\draw[help lines] (-6,-6) grid (6,6);
\foreach \x in {0,36,72,...,324}
\draw [decorate,decoration={brace,amplitude=10pt},rotate=\x] (0.5,0.5) -- (0.5,5.0);
\end{tikzpicture}
\end{document}

enter image description here

You can also rotate around a point.

\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.pathreplacing}

\begin{document}

\begin{tikzpicture}
\draw[help lines] (-6,-6) grid (6,6);
\foreach \x in {0,36,72,...,324}
\draw [decorate,decoration={brace,amplitude=10pt},rotate around={\x:(0.5,0.5)},=\x] (0.5,0.5) -- (0.5,5.0);
\end{tikzpicture}
\end{document}

enter image description here

enter image description here

Related Question