Hi, does anyone have code for a pentagram in tikzpicture?
Thanks very much for any help.
Graphics, Figures & Tables ⇒ pentagram in tikzpicture
NEW: TikZ book now 40% off at Amazon.com for a short time.

pentagram in tikzpicture
A simple example is
Best regards
Elke
Code: Select all
Code, edit and compile here:
\documentclass[tikz,margin=5mm]{standalone}\newcommand\Radius{2}\begin{document}\tikz\draw(90-144:\Radius)--(90:\Radius)--(90+144:\Radius)--(90-72:\Radius)--(90+72:\Radius)--cycle;\end{document}
Elke
-
- Posts: 2
- Joined: Mon Jul 14, 2014 1:07 am
Re: pentagram in tikzpicture
Hi Elke,
That's perfect.
Thanks very much.
That's perfect.
Thanks very much.
Re: pentagram in tikzpicture
Hi Elke,
thank you for this nice solution. However I'm confused about where the coordinates start, or basically which would be point 0,0 as center of the circle. If I write your code twice in a row, I get another pentagram next to the first one, but I can't make sense of how tikz decides where to move the center from one pentagram to the next one. Apparently it's not the last point of "cycle" and not the point before that.
Can you point me to a tutorial on this or any manual page or something?
Thank you.
AC
thank you for this nice solution. However I'm confused about where the coordinates start, or basically which would be point 0,0 as center of the circle. If I write your code twice in a row, I get another pentagram next to the first one, but I can't make sense of how tikz decides where to move the center from one pentagram to the next one. Apparently it's not the last point of "cycle" and not the point before that.
Can you point me to a tutorial on this or any manual page or something?
Thank you.
AC
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
pentagram in tikzpicture
Hi AC,
(0,0) is the center. Each image has certain dimensions. The images are simply placed next to each other, if you repeat it, no matter where (0,0) is.
Manual with tutorials included:
tikz. Or type
Stefan
(0,0) is the center. Each image has certain dimensions. The images are simply placed next to each other, if you repeat it, no matter where (0,0) is.
Manual with tutorials included:

texdoc tikz
or texdoc pgf
at the command prompt of your computer.Stefan
LaTeX.org admin