5

I have this shaded circle:

\shade [ball color=black!80!white] (0,0) circle (1);

Is it possible to encapsulate it with node style and fixing the circle radius?

Łukasz Lew
  • 8,543
  • 12
  • 43
  • 42

1 Answers1

5

You could define a style for nodes using \tikzstyle:

\documentclass{article} 
\usepackage{tikz}
\begin{document}
\tikzstyle{ball} = [circle,shading=ball, ball color=black!80!white,
    minimum size=1cm]
\begin{tikzpicture}
\node [style=ball] {};
\end{tikzpicture}
\end{document}

Output:

alt text

Stefan Kottwitz
  • 231,401