I draw shapes on background via pgfonlayer
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}
\begin{pgfonlayer}{background}
\draw[rounded corners,fill=red] (1,1) rectangle (2,2);
\draw[fill=blue] (0,0) circle (.8cm);
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
I know the values (coordinates) needed to draw rectangle or circle, but I have no idea what are the parameters needed to draw a star.
We define the starting coordinate; for rectangle we give the second coordinate two draw rectangle between two points, for circle, we give the radius to draw circle around the starting point. What we need to give to draw star around the starting point?
\draw[fill=green] (0,0) star ????;
PS. Sorry, I know this is a basic typical question, but I had a long struggle with it.


node [star]for this, which is included in the\usetikzlibrary{shapes.geometric}. See Drawing Stars/Similar with TikZ. Thepgfmanualdescribes the many different node shapes in great detail. – Jake Jun 07 '12 at 12:21pgfonlayerfor other packages likebackground, and I prefer to follow the standard procedure. – Googlebot Jun 07 '12 at 12:25pgfonlayer? You can usenodes inpgfonlayerenvironments. – Jake Jun 07 '12 at 12:26nodeoutsidepgfonlayer. – Googlebot Jun 07 '12 at 12:31starcreator as there is forcircleorrectangle. In such cases, node shapes are a common way to easily create a wide variety of shapes. – Andrew Stacey Jun 07 '12 at 13:13