TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If using ball shading on non-circle elements, it will well apply the shading effect, but it will use the default blue color. How to use ball shading with the element color.

\node[text width=3cm,fill=red,shading=ball] (test) at (1,1) {Text};

This will produce a rectangle with ball shading effect; however, in blue color instead of red.

share|improve this question
up vote 8 down vote accepted

Just add the ball color option:

\node[text width=3cm, shading=ball, ball color=red] (test) at (1,1) {Text};

More details in the PGF/TikZ manual (v 2.10) - page 413, under /tikz/ball color, where you can find links to other sections with other useful options too.

share|improve this answer
Thanks, I check TikZ manual everyday for my issues; but it is not easy to find something in 800 pages ;) – All Jun 3 '12 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.