Solution

1 Create a circular gradient button on a new layer.

2 On another layer, create a circular gradient button that's a bit smaller than the first. The direction of the gradient on this button should be the opposite to that of the first button—in this example, my big circle has a white-to-gray diagonal gradient and my small circle has a dark-to-light diagonal gradient.

(Don't be too concerned about lining the shapes up just yet.

Round push-button

■ QBE

3L

Layers Channels 1 Paths

Wnrmal

v (Opacity: ioo°/d

U ffc !□ J -t* a fl

: | 100°/t | >

s

*

small

Si

»

big a

&

Background

a

oj _l

a 3

Creating two circular gradient buttons

3 Select the layer for the smaller circle from the Layers palette. Hold down Ctrl (Command on a Mac) and click on the layer thumbnail for the larger circle to create a selection based on the pixels of that layer, as I've done here. (We talked about this in Chapter 1, remember?)

4 After you've created the selection, select Layer > Align Layers To Selection > Vertical Centers as shown here. This will vertically align the center of the small circle with the center of the larger one.

5 Finally, select Layer > Align Layers To Selection > Horizontal Centers, and just as you suspected, the centers of both circles will align horizontally.

Creating a selection

Arrange ► I

Align Layers To Selection ►

□ a Top Edges

Distribute ►

-3a- Vertical Centers

Lode All Layers in Group,.,

Bottom Edges

Link Layers

|a Left Edges

Select Linked Layers

£ Horizontal Centers

Merge Layers Ctrl+E

Si Right Edges

Merge Visible Shift+Ctrl+E

Flatten Image

Matting ►

Aligning vertical centers

Aligning vertical centers

Your push-button is complete!

0 0

Post a comment