I need to draw a closed shape using controls and then round the heads.
The problem is the starting point (The upper one) is not rounded as if the shape is not closed, and the cycle
command is not working correctly.
Here is my code:
\documentclass[margin=10mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[rounded corners = 50pt, fill=red] (0,5) .. controls(0.2,1) .. (10,0) ..controls (0.2,-1) ..(0,-5).. controls(-0.2,-1)..(-10,0)..controls(-0.2,1)..(0,5);
\end{tikzpicture}
\end{document}
Best Answer
Not a real solution, but the following workaround may be acceptable. I used
line width = 4pt, line join = round, red
andcycle
for the last point to give the effect ofrounded corners = 50pt
.