I would like to have a radial shading of a ring, from inner color (red) at inner radius r1 > 0 to outer color (white) at outer radius r2 > r1. But with
\filldraw[even odd rule,inner color=red,outer color=white]
(0,0) circle (2.2)
(0,0) circle (1.8);
the inner circle only masks the shading of the outer circle:
How to choose a finite inner radius for the shading such that the full color starts at r1 = 1.8?
Best Answer
Do you mean something like the first or the second circle?
The code in which they are realized is:
As said by percusse, the only possible approach is to define a new radial shading. Here is an example:
This gives you:
which I guess is your purpose. Notice that the option
fill=white
is not really needed, but it has been used to compare the two results.A simple add to customize colors: the option is identical to what defined in How to shade mindmap concepts?.
The code:
The result: