Draw a sphere: Difference between revisions
Content added Content deleted
(jq) |
(new TeX using PGF) |
||
Line 3,304: | Line 3,304: | ||
[[image:Tcl-spheroid.gif]] |
[[image:Tcl-spheroid.gif]] |
||
=={{header|TeX}}== |
|||
{{libheader|PGF}} |
|||
The PGF <code>shadings</code> library includes a "ball" for a 3-D style highlight. For example with [[LaTeX]], |
|||
<lang TeX>\documentclass{article} |
|||
\usepackage{tikz} |
|||
\usetikzlibrary{shadings} |
|||
\begin{document} |
|||
\begin{tikzpicture} |
|||
\shade[ball color=black] (0,0) circle (4); |
|||
\end{tikzpicture} |
|||
\end{document}</lang> |
|||
=={{header|XPL0}}== |
=={{header|XPL0}}== |