I want to make a macro which draw a enlighten match using TikZ in my document. I'm successful :
\newcommand\allumette[2]{
\fill [PeachPuff] (#1,#2) rectangle (#1+4,#2+0.2);
\fill [PeachPuff!60!Black] (#1,#2) -- ++(4,0)-- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05);
\draw (#1,#2) -- ++(0,0.2) -- ++(4,0) -- ++(0,-0.2) -- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05);
\shade[ball color=red] (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm);
\draw (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm);
}
Output :
However, I'm not successful while trying to draw the flame over the tip.
Edit : Here is a minimal working example :
\documentclass{article}
\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\newcommand\allumette[2]{
\fill [PeachPuff] (#1,#2) rectangle (#1+4,#2+0.2);
\fill [PeachPuff!60!Black] (#1,#2) -- ++(4,0)-- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05);
\draw (#1,#2) -- ++(0,0.2) -- ++(4,0) -- ++(0,-0.2) -- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05);
\shade[ball color=red] (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm);
\draw (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm);
}
\begin{document}
\begin{tikzpicture}
\allumette{0}{0}
\end{tikzpicture}
\end{document}


\documentclasscommand and\begin{document}\end{document}. – mirkom Dec 18 '16 at 14:33tikzsymbols? I think it includes a flame or something similar. – cfr Dec 18 '16 at 14:41