I'm trying to draw a simple equilateral triangle with rounded corners in Tikz. However, I can't get the rounded corners correct.
I have the following MWE which draws the triangle:
\documentclass{article}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}
\begin{document}
\begin{tikzpicture}
\draw [fill=gray!20] (0,0)--(1,0)--(0.5,1)--cycle;
\end{tikzpicture}
\end{document}
I've tried this to get rounded corners, but it has a very strange result:
\documentclass{article}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}
\begin{document}
\begin{tikzpicture}
\draw [rounded corners=10mm,fill=gray!20] (0,0)--(1,0)--(0.5,1)--cycle;
\end{tikzpicture}
\end{document}
Any idea how to get simple rounded corners for the three corners of the triangle?
P.S. I'm not sure which libraries are needed, so I've left them all for now but I know this is probably not needed.





rounded corners=2mmin your original code will work as well (even without scaling). – Jake Mar 21 '13 at 11:44xcolor. Sometimes it's interesting to usexcolorwith special options. In this case, you need to loadxcolorbeforeTikzsomething like\usepackage[usenames,dvipsnames]{xcolor}– Alain Matthes Mar 21 '13 at 12:26xcolorin mytikzdrawings. I will edit my explanation. – hpesoj626 Mar 21 '13 at 13:03rounded corners=10mm, does that result in a 10mm radius, or 10mm diameter? – falsePockets Aug 13 '16 at 09:59