TikZ has a library called shadings that
allows you to fill a path with a shading that makes it look like a sphere.
\usetikzlibrary{shadings}
\begin{tikzpicture}
\shade[ball color=blue] (0,0) circle (1);
\end{tikzpicture}
For my master’s thesis, I wanted to use this to draw the symbol for the center
of gravity, conventionally a quartered black-and-white circle, but for a
three-dimensional drawing. However, I couldn’t find any examples in the
documentation of the ball shading applied to multiple paths. So, I just
tried.
To my surprise, it worked! But why? Well, it turns out that I just got lucky.
Apparently, the shading is applied relative to the bounding boxes of the
individual paths. Since both paths have rectangular bounding boxes with lower
left corners at (-1,-1) and upper right corners at (1,1), their shadings
overlap. Had I drawn the same symbol with four paths such that their bounding
boxes did not coincide, this would not have worked.