Imagine a radial gradient that goes from red in the center to transparant. Then cut it in half. Then on the bottom, I need it to go from blue in the center to transparant. Also radial. How do I do this in Illustrator? I want it to look like it's all the same radial gradient... just red on top and blue on the bottom. I've mocked it up in Photoshop below. But I want to know if I can do this in Illustrator. I couldn't figure it out.
A simple way of doing it could be to:
1) Create the two full gradients on top of each other;
2) Create a circle of (at least) the same size on the very top and delete half of it (Direct Select top or bottom Anchor Point, press delete, then Ctrl/Cmd+J);
3) Select the half circle and the topmost gradient and Object>Clipping Mask>Make.
Edit: Hi Scott. 2 Clipping Masks?
Another way might be to:
1) Create one gradient normally to a full circle;
2) Create a circle of (at least) the same size on top and delete half of it (Direct Select top or bottom Anchor Point, press delete, then Ctrl/Cmd+J), then Object>Path>Add Anchor Points, then drag with the Gradient Tool from the centre Anchor Point to the rim and edit the gradient (changing the colour basically).
I thought of the two half circles, too, as the cleanest solution, Scott. But then I had just crawled some six feet into a rather entangled bush to clear it of stinging nettles. It proved to be a more than one hour and a half job.
For my part you are welcome, Julie.
I hope you are using a Clipping Mask for both circles as Scott said, opposite of course, to avoid (the outer part of) the underlying circle shining through and muddling the colour.
just because there are too many solutions to this issue I'm gonna throw mine in too. I did it with a graphic style, so you you can draw a box, circle, star or whatever, apply the style and end up with your sphere as long as you draw your initual shape proportionally
first I make a fill with the radial gradien fading from blue to transparent. I make it 200% tall. I ad a transform effect anchord at the bottom of the gradient and shrink it 50% vertically. I then drag the gradient down so it startst at the base of my shape.
I duplicate that fill and change the color, and the transform origin to the top center. I move the gradient origing to the top of my shape. and I save the style
that will work with any square shape you draw. just draw your shape and apply the style. if you want it to work with other shapes simply add a Convert to Shape effect and now you can apply the effect to any shape.
I personally avoid clipping masks whenever possible. I just don't like them.