This is the web log of Tim Bennett, web designer. He also runs Texelate, offering the best web design Leeds, Yorkshire has to offer

Voting Stars in Photoshop

Tuesday, February 26th, 2008 at 3:32 pm

 

Note: This tutorial is written for Photoshop CS on a Windows XP platform and assumes you have a basic knowledge of Photoshop. However, this technique will work on most versions of Photoshop or similar graphics package.

In this tutorial you will create selected and deselected voting stars so you can create a rating interface like this:

voting_selectedvoting_selectedvoting_selectedvoting_unselectedvoting_unselected

1. Create a new canvas 75 pixels wide and 75 pixels in height with a background colour of #222222.

2. Choose #F9F109 as your foreground colour and select the Polygon Tool; set sides to 3.

3. Hold down Shift and drag the cursor upwards to draw a triangle like this:

voting_3

4. Right-click the layer and choose Rasterize Layer.

5. Right-click the layer and choose Duplicate Layer; choose Edit > Free Transform and enter 72° in the Set Rotation field (the star will have five points so each point needs to be rotated by 72°, i.e. 360° / 5). Position the new layer thus:

voting_5

6. Do the same with the new layer: right-click the new layer and choose Duplicate Layer; choose Edit > Free Transform and enter 72° in the Set Rotation field. Position the new layer thus:

voting_6

7. Select the top layer and press Ctrl + E twice – this puts all three layers into one.

8. Select the Rectangular Marquee and drag over the left-hand side of the canvas like this:

voting_8

9. Press Delete to remove the selection:

voting_9

10.Right-click the layer and choose Duplicate layer; choose Edit > Transform > Flip Horizontal. Keep pressing the left arrow key to nudge the new layer to this position:

voting_10

11. Press Ctrl + E to merge both layers into one; choose the Paint Bucket Tool, set Tolerance to 0 and ensure Anti-Aliased and Contiguous are checked. If your foreground colour is not #F9F109 set it to #F9F109. Click in the center of the star so that it looks like this:

voting_11

12. The shape of the star is there but it needs tidying up. Holding down Ctrl, click on the layer to select its transparency; choose the Paint Brush Tool and set the brush size to 30px, the Hardness to 100%, the Mode to Normal and the Opacity to 100%. Paint repeatedly over the star until the colour is consistant all over:

voting_12

Note: If at this point your star in not properly centred, align your star using the arrow keys – in the example the star was nudged up by 2 pixels.

13. Add these Inner Glow settings:

voting_13

14. Your canvas will look like this:

voting_14

15. Add these Outer Glow settings:

voting_15

16. Your canvas will look like this:

voting_16

17. Add these Stroke settings:

voting_17

18. Your canvas will look like this:

voting_18

19. Create a new layer above the star layer. Hold down Ctrl and click once on the star layer; choose Select > Contract and enter 3px. Set your foreground colour to #FFFFFF and use the Paint Bucket Tool to fill the new layer:

voting_19

20. Set the opacity of the new layer to 60%:

voting_20

21. This is a selected star – to create a deselected star simply select the star layer and choose Image > Adjustments > Hue/Saturation and set the Saturation to -40:

voting_21

22. You can use these two type of stars to create a rating interface, for example this is three stars out of five:

voting_selectedvoting_selectedvoting_selectedvoting_unselectedvoting_unselected

Leave a Reply

You must be logged in to post a comment. If you don't have an account register one now.

Do you need a website or web-related service?
I run an award-winning web design studio.