13

Is it possible to make a balloon-like shape in TikZ? Personally, I haven't found anything closer than an ellipse:

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
    \tikzstyle{balloon}=[ball color=red];    
    \shade[balloon] ellipse (2 and 1);
\end{tikzpicture}
\end{document}
Gaussler
  • 12,801

2 Answers2

18

Without PSTricks.

\documentclass[tikz,border=12pt]{standalone}

\begin{document}
\begin{tikzpicture}
    \tikzstyle{balloon}=[ball color=red];    
    \shade[balloon] ellipse (1.75 and 2);
    \shade[balloon] (-.1,-2) -- (-.3,-2.2) -- (.3,-2.2) -- (.1,-2) -- cycle;
    \draw (0,-2.2) -- (0,-5);
\end{tikzpicture}
\end{document}

enter image description here

4

Surprisingly, we can do that with a very simple Bezier curve. The idea of including a small part below the knot is inspired by the other answer to this question. The draw command afterwards draws the rope.

\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
  \shade[ball color=red] (-.08,-2.2) .. controls (2,0) and (-2,0) .. (.08,-2.2);
  \draw (0,-2.2) -- (0,-5);
\end{tikzpicture}
\end{document}

Result of the tikz code producing a floating balloon

  • 1
    Thanks for the great answer. I could really have used that ten years ago when I wrote that physics report. – Gaussler Feb 10 '24 at 11:31