Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.