Archive for February, 2011

Cross Platform Scalable Vector Graphics with svgweb

Pity Scalable Vector Graphics. It’s been an official standard since before IE6 was released yet has never found much of an audience on the web, certainly not the one it deserves. Just as SVG was starting to establish some browser support, along came the canvas tag, stealing the thunder of dynamically generated client-side images. Yet despite all the attention being paid to canvas, there’s still a place for SVG, particularly for developers looking to replace plug-ins like Flash for data visualization. Unlike canvas or other script-only approaches, SVG can be easily divided into design and code elements, with just a little code to add interactivity. It even works on devices like the iPad and iPhone. And now, thanks to svgweb and a clever use of Flash, it works on older platforms no one could have ever imagined supporting SVG. Jim Ray shows how.

Writing useful page titles

In Title Junk, John Gruber brings up the usability problems that poorly designed web page titles can cause. He makes many good points – I posted similar thoughts in Document titles and title separators back in 2004.

Writing good titles for web pages is far from a new subject. A little reminder every now and then doesn’t hurt though, so here are a few simple guidelines.

Read full post

Posted in , .



Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Advertisement in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles
 in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles  in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles  in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Often, it’s the little details that turn a good layout into a great design; details such as subtle textures, shading and smooth shapes. Photoshop contains a vast array of tools for embellishing a design, but choosing the right one isn’t always easy. Being the obsessive-compulsives that we are, we’ve conducted a huge range of experiments to determine the benefits and disadvantages of each technique. Here, then, is an obsessive-compulsive’s guide to some frequently used tools and techniques for Web and UI design in Photoshop.

Noise and Textures

Subtle noise or texture on UI elements can look great, but what’s the best way to add it? Our goal is to find the best method that maintains quality when scaled but that is also easy to implement and edit. To find out which is best, we’ll judge each method using the following criteria:

  • Number of layers used: fewer is better.
  • Ability to scale: if the document is resized, will the effect maintain its quality?
  • Can the noise be on top of the Color and Gradient layer styles?
  • Can the method be used with any texture, not just noise?

Build-killbots in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

1. Bitmap Layer With Noise

Bitmaplayer in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Probably the most obvious method for adding texture to a shape is to create a normal bitmap layer, fill it with a color, select FilterNoiseAdd Noise, then apply a mask or Vector Mask to match the element you’re adding noise to.

Using a high amount of noise, setting the layer blending mode to Luminosity and reducing the opacity will yield the most control over the noise with the least disturbance to the underlying layers. A noise setting of 48% gives a high dynamic range without clipping the noise. (Clipping results in higher contrast, which might not be desirable.)

  • Layers: 2
  • Scales: No, texture will have to be recreated if the document is scaled
  • Works with Color and Gradient layer styles: Yes
  • Works with any texture: Yes

2. Inner Glow Layer Style

Glow in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Adding an Inner Glow layer style with the source set to center and the size to 0 will let you use the noise slider to add texture to any layer. It’s a good solution, provided you’re not already using the Glow layer style for something else. The noise is added above the Color, Gradient and Pattern layer styles, which is great.

Unfortunately, the noise can only lighten or darken the underlying elements. The previous bitmap layer method can add highlights and shade at once while maintaining the average luminosity, and it looks far better in my opinion.

  • Layers: 1
  • Scales: Yes, texture will be remade automatically
  • Works with Color and Gradient layer styles: Yes
  • Works with any texture: No

3. Smart Object with Filter

Smart-object-filter in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Create a Solid Color layer, convert it to a Smart Object, select FilterNoiseAdd Noise, apply a Vector Mask to match your element, set the layer blending mode to Luminosity and reduce the layer’s opacity.

It’s a fairly involved process, but it can accommodate a combination of effects that can be remade if the document gets scaled.

  • Layers: 2
  • Scales: Yes, texture will be remade automatically
  • Works with Color and Gradient layer styles: Yes
  • Works with any texture: No

4. Pattern Overlay Layer Style

Pattern in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Start by creating a noise or repeating pattern in a new document, then choose EditDefine Pattern. Once you’ve defined the pattern, it will be available in the Pattern Overlay layer style options. As with previous methods, using Luminosity as a blending mode and reducing the opacity to suit it yield great results.

The Pattern layer style is composited below the Color and Gradient styles, ruining an otherwise perfect noise and texture method. However, you can create a second layer that just holds the texture if you need to, or start with a Gradient Fill layer, sidestepping the limitation.

  • Layers: 1
  • Scales: Yes, but you’ll need to change the Layer style scale to 100% after scaling
  • Works with Color and Gradient layer styles: No, the pattern appears underneath
  • Works with any texture: Yes

Which Method Is Best?

Although a little cumbersome, creating a Gradient Fill layer, adding a Pattern layer style, then creating a Vector Mask seems to be the best method possible. This can be used to create flexible, scalable and editable single-layer UI elements with texture. As a bonus, Gradient Fill layers can be dithered and so also produces the highest quality results (Gradient layer styles cannot be dithered).

We’ve created some examples below and included the source document so that you can see how they were built.

Reset-kill-limit-small1 in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Download the PSD (.zip)

Rounded Rectangles

Rounded rectangles, or “roundrects� as QuickDraw so fondly calls them, are standard fare on a Web and interface designer’s utility belt. They’re so common that it’s rare for Web pages or apps to not contain a roundrect or two. Unfortunately, pixel-locked rounded rectangles can actually be fairly difficult to draw in Photoshop. (By pixel-locked, I mean that every edge falls on an exact pixel boundary, creating the sharpest object possible.)

Experienced Photoshop users will probably already know one or two ways to draw a roundrect. Hopefully, after reading this article, they’ll also know a couple more, as well as which methods produce pixel-perfect results.

1. Rounded Rectangle Vector Tool

Photoshop’s Rounded Rectangle vector tool appears like the ideal candidate for the task, until you realize that the edges it creates are blurry and inconsistent.

Vectorroundedrectangle in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Fortunately, there is a fairly well-hidden option that locks the Rounded Rectangle vector tool’s output to the pixel grid. Excellent.

To enable pixel-locked drawing for the Rounded Rectangle vector tool, check the “Snap to Pixels� option in the Options bar. If you have “Snap to Pixels� turned off, drawing at 100% zoom achieves the same result.

Vectorroundedrectangle-options in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

The result is perfect roundrects, every time. The only downside is that the corner radius can’t be altered during or after drawing the shape. If you need a different radius, you’re forced to draw it again. It’s a shame the roundrect tool isn’t like Illustrator in this regard, where the up and down arrow keys increase and decrease the corner radius while drawing.

On the positive side, keeping your objects as vectors means that you’ll be able to resize the document and the corners will take full advantage of any extra resolution. There is one small caveat though: if you resize, you’ll have to do it as an exact multiple, or risk fuzzy non-pixel–locked edges.

If you’re being pedantic about the results, you may notice that the antialiasing on the first half of each corner doesn’t match the second half — you’ll have to look carefully to notice, though. For example, looking at the zoomed corner below, the start of the corner to the apex isn’t identical to the apex to the end of the corner (starting from either side). In practice, that probably won’t create any issues.

Vectorroundedrectangle-fixed in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

2. Blur

The blur method is a bit of a hack that involves creating a selection, blurring it, then increasing the contrast so that you’re left with a sharp mask that’s antialiased nicely.

It’s seven steps in total and is prone to being inaccurate; plus, the radius of the corners can’t be changed on the fly. Applying levels can also be a bit fiddly. One advantage is that different levels settings can be used to obtain different degrees of antialiasing, from incredibly soft to completely aliased.

  1. Create a new layer.
  2. Draw a rectangular selection.
  3. Enter quick mask (Q).
  4. Gaussian blur by half the radius that you’d like for the rounded corners. (For example, a 10-pixel radius would need a 5-pixel blur.)
  5. Apply Levels (Command + L), and use about 118 for the black point and 137 for the white point on the input levels.
  6. Exit quick mask (Q).
  7. Fill selection.

Blur in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

On the positive side, this blur method can be used to quickly create some interesting and organic shapes that would be difficult to draw by hand.

Blur-examples in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

3. Circles

The circles method is very accurate and easily reproducible, but has a whopping 13 steps. That’s a lot of clicking for just a single roundrect.

  1. Create a new layer.
  2. Make a circular selection that is twice as large as the radius you would like (for example, a 10-pixel radius would require a 20×20-pixel circle).
  3. Fill the selection.
  4. Move the selection right. This can be done quickly by holding down Shift and pressing the right-arrow key a few times.
  5. Fill the selection.
  6. Move the selection down.
  7. Fill the selection.
  8. Move the selection left.
  9. Fill the selection.
  10. Make a rectangular selection that covers the entire vertical span of the roundrect but that starts and ends halfway through the circles at the ends.
  11. Fill the selection.
  12. Make a rectangular selection that covers the entire horizontal span of the roundrect but that starts and ends halfway through the circles at the ends.
  13. Fill the selection.

Fourcircles in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

4. Stroke

The stroke method is very accurate, easily reproducible and has only about four steps, depending on the result you’re after. The corners are a bit sharper than those of the circle method, though. That may be a good thing or a bad thing, depending on your preference.

  1. Create a new layer.
  2. Draw a rectangular selection that is smaller than the area you require (smaller by double the radius, if you want to be exact).
  3. Fill the selection.
  4. Add a stroke as a layer style that is as thick as the corner radius you would like.

If you’d like to flatten the object to remove the stroke, keep following the steps below.

  1. Create a new layer.
  2. In the Layers palette, select the new layer and the previous layer.
  3. Merge layers (Command + E).

Strokeit in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

It’s possible to automate the flattening with a Photoshop Action. This can also be set up as a function key to speed things up further.

A huge advantage of the stroke method is that it’s dynamic, so the radius can be edited in real time. It can also be used to easily create other rounded shapes, as seen below.

Strokeit-examples in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Which Method Is Best?

In most cases, using the Rounded Rectangle tool with “Snap to Pixel� turned on will give great results and be the quickest method. If you’d like the ability to change the corner radius without redrawing, then the stroke method is the one to use.

However, as seen below, each method yields different results. So, depending on what you’re after, you may need to use a combination of methods.

Comparison in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

All tests were completed using Photoshop CS4 and CS5 on a Mac. Behavior for both versions was consistent.

Gradients

Gradients are a great way to add life-like lighting and shading to surfaces. When built with gradient layers and layer styles, they also ensure that UI elements can be scaled and reused easily.

Linear Gradients

Linear gradients are gradients in their most basic form — a gradual blend of colors and following a straight line. I’m sure you knew that, so onto the more interesting stuff.

Linear in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Reflected Gradients

Reflected gradients are like their linear friends, but they repeat the gradient twice, with the second repeat mirrored. This makes editing a little less tedious, provided it fits the result you’re after.

Reflected in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Radial Gradients

Radial gradients start from the center (or any chosen point) and grow outward in a circular pattern. They’re handy for creating spheres and applying effects to the edge of circular elements. The center point of the gradient can be moved by clicking and dragging on the canvas while the gradient window or layer styles window is open.

Radial in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Angle Gradients

Angle gradients can be a great way to mimic environmental reflections found on highly polished metallic objects. The center point of the gradient can be moved by clicking and dragging on the canvas while the gradient window or layer styles window is open.

Angle in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Gradients on Gradients

Anything worth doing is worth overdoing, right? Combining a gradient layer with a gradient layer style lets you overlay two different gradients, giving more complex and — here’s the good part — completely dynamic results. To combined the gradients, you’ll need to set a blending mode for the gradient layer style. For the examples below, I’ve used either Screen (good for lightening) or Multiply (good for darkening).

Gradients-on-gradients in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Dithering Is Everything

Adding dithering to a gradient produces smoother results. Non-dithered gradients often contain visible banding. Dithering is even more important if your artwork is being viewed on cheaper 6-bit per channel TN LCDs and certain display types that tend to amplify posterization problems.

Dithered in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

If you’re not seeing the difference, here’s an extreme and completely unrealistic example of gradient dithering in action:

Dithered2 in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Ensuring that your gradients are dithered is easy: just check the appropriate box in Photoshop.

Gradient-fill in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Note that gradient layer styles can’t be dithered, and gradients in placed objects (such as stuff you’ve pasted from Illustrator) aren’t dithered.

If you use transparency in a gradient, that won’t be dithered either, which can be a huge issue at times. There is a solution for some specific cases: if you’re using a gradient with transparency to lighten an area with white, then using a non-transparent gradient with a Screen Layer blending mode will let you dither it. The same technique can be used for darkening with the Multiply blending mode.

Transparency in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

A combination of the gradient techniques described above were used to create the Mac app icon below.

Mac-app-icon in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Gradient Maps

Quite different to other types of gradients, gradient maps can be a great way to add color treatment, allowing for very precise control. Gradient maps use the brightness of each pixel to map to a corresponding color in a gradient.

If the gradient starts at red and ends at blue, then everything white in the image will turn red, and everything black will turn blue. Everything in the middle tonally will map to the gradient, depending on how bright it is.

The image below was used in a poster for Kingswim, a swimming school:

Kingswim in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles
With a gradient map. Large view

Without the gradient map, things look quite different. It’s a composite of about seven photos; the boy and background were shot on black and white film with intentionally low contrast so that the grain would be more prominent when the contrast was pushed by the gradient map. The gradient map also hides the color mismatches in the compositing.

Kingswim2 in Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles
Gradient map off. Large view

A Little Obsessed?

Absolutely. I conducted all of the tests above to learn more about some common techniques that I already use: that is, to reassess and fine tune, with the aim of improving my designs. Creating great artwork without intimately knowing your tools is certainly possible, but the more you know, the more likely you are to work faster and with greater confidence.

Would you like to know more about a specific technique or Photoshop feature? Please let us know in the comments.

(al)


© Marc Edwards for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: ,


80 All-You-Need Photoshop Brushes

Advertisement in 80 All-You-Need Photoshop Brushes
 in 80 All-You-Need Photoshop Brushes  in 80 All-You-Need Photoshop Brushes  in 80 All-You-Need Photoshop Brushes

Brushes for Adobe Photoshop are known to be one of the most used add-ons since they don’t just enhance your designs, but also help give your works a new, fresh and stunning look. Those of you who have a love for brushes may probably know a number of them listed in this post. Nevertheless, new brushes are being designed for Photoshop and hence, you will surely find ones you’d like to try out without any delay! Enjoy!


Retro Photoshop Brushes

Retro-designs-brushes in 80 All-You-Need Photoshop Brushes

Watercolor Related Brushes

364 in 80 All-You-Need Photoshop Brushes

Real Brush Stroke Set

68 in 80 All-You-Need Photoshop Brushes

Grunge Typo Brushes

88 in 80 All-You-Need Photoshop Brushes

Photoshop Splatter Brushes

41 in 80 All-You-Need Photoshop Brushes

Acrylic Photoshop Brushes

98 in 80 All-You-Need Photoshop Brushes

Floral Deco Brushes

76 in 80 All-You-Need Photoshop Brushes

Free Grunge Splatter Photoshop Brushes

287 in 80 All-You-Need Photoshop Brushes

Free Splatter Brushes

42 in 80 All-You-Need Photoshop Brushes

Photoshop Cracks Brushes

55 in 80 All-You-Need Photoshop Brushes

Free Splatter Brushes

53 in 80 All-You-Need Photoshop Brushes

Vector Photoshop Brushes

67 in 80 All-You-Need Photoshop Brushes

Messy Spraipaint Photoshop Brushes

327 in 80 All-You-Need Photoshop Brushes

Free Hi-Res Watercolor Brushes

420 in 80 All-You-Need Photoshop Brushes

30 Free Photoshop Swirl Brushes

510 in 80 All-You-Need Photoshop Brushes

Hair Brushes Set

62 in 80 All-You-Need Photoshop Brushes

Paint Stroke Photoshop Brushes

107 in 80 All-You-Need Photoshop Brushes

Halftone Brushes

1111 in 80 All-You-Need Photoshop Brushes

Free Halftone Photoshop Brushes

129 in 80 All-You-Need Photoshop Brushes

Photoshop Hyper Brushes

137 in 80 All-You-Need Photoshop Brushes

Winter Breeze Brush

148 in 80 All-You-Need Photoshop Brushes

Extremely Abstract Brushes

157 in 80 All-You-Need Photoshop Brushes

Sui Generis Brushes

167 in 80 All-You-Need Photoshop Brushes

Energy Photoshop Brushes

177 in 80 All-You-Need Photoshop Brushes

Abstract Curves Brushes

187 in 80 All-You-Need Photoshop Brushes

Serenity Brushes

197 in 80 All-You-Need Photoshop Brushes

Silicon Photoshop Brushes

207 in 80 All-You-Need Photoshop Brushes

Galactic Photoshop Brushes

2111 in 80 All-You-Need Photoshop Brushes

Unreal Photoshop Brushes

228 in 80 All-You-Need Photoshop Brushes

Refresh Photoshop Brushes

237 in 80 All-You-Need Photoshop Brushes

Abstract Paint Brushes

247 in 80 All-You-Need Photoshop Brushes

3D Abstract Lines Brushes

257 in 80 All-You-Need Photoshop Brushes

Coffee Happens Reloaded Brushes

267 in 80 All-You-Need Photoshop Brushes

Splatter and Watercolor Brushes
128 in 80 All-You-Need Photoshop Brushes

Grunge Photoshop Brushes

277 in 80 All-You-Need Photoshop Brushes

Grunge Alphabet Brushes

297 in 80 All-You-Need Photoshop Brushes

Grunge Photoshop Brushes 3

307 in 80 All-You-Need Photoshop Brushes

Grunge Set Photoshop Brushes

31 in 80 All-You-Need Photoshop Brushes

High-Tech Reloaded

32 in 80 All-You-Need Photoshop Brushes

Grungy Brushes New-Set

33 in 80 All-You-Need Photoshop Brushes

Stars Brushes 2

34 in 80 All-You-Need Photoshop Brushes

Hi-Res Photoshop Fabric Brushes

227 in 80 All-You-Need Photoshop Brushes

Quad Grunged Brushes

35 in 80 All-You-Need Photoshop Brushes

Skin-Texture Photoshop Brushes

37 in 80 All-You-Need Photoshop Brushes

Fur Photoshop Brushes

38 in 80 All-You-Need Photoshop Brushes

Photoshop Brushes

39 in 80 All-You-Need Photoshop Brushes

Skin Care Photoshop Brushes

40 in 80 All-You-Need Photoshop Brushes

Nebulae Photoshop Brushes

43 in 80 All-You-Need Photoshop Brushes

Angel Wings Photoshop Brushes

44 in 80 All-You-Need Photoshop Brushes

Cool Photoshop Brushes

45 in 80 All-You-Need Photoshop Brushes

Cloud Photoshop Brushes

46 in 80 All-You-Need Photoshop Brushes

Floral Photoshop Brushes

47 in 80 All-You-Need Photoshop Brushes

Fingerprint Photoshop Brushes

48 in 80 All-You-Need Photoshop Brushes

Rising Sun Photoshop Brushes

49 in 80 All-You-Need Photoshop Brushes

Japanese Photoshop Brushes

50 in 80 All-You-Need Photoshop Brushes

Miss M Photoshop Brushes

51 in 80 All-You-Need Photoshop Brushes

Fences Photoshop Brushes

52 in 80 All-You-Need Photoshop Brushes

Manga Photoshop Brushes

54 in 80 All-You-Need Photoshop Brushes

Bubble Sparkle Brushes

56 in 80 All-You-Need Photoshop Brushes

Photoshop Tech Brushes

57 in 80 All-You-Need Photoshop Brushes

Skin Care and Cosmic Brushes

58 in 80 All-You-Need Photoshop Brushes

Photoshop Hurricane Brushes

59 in 80 All-You-Need Photoshop Brushes

Eyelash Brushes

60 in 80 All-You-Need Photoshop Brushes

RisingSun Photoshop Brushes

61 in 80 All-You-Need Photoshop Brushes

Photoshop Blood Brushes

63 in 80 All-You-Need Photoshop Brushes

Ornament Photoshop Brushes

64 in 80 All-You-Need Photoshop Brushes

Bat Demon Wings Brushes

65 in 80 All-You-Need Photoshop Brushes

Download Source

Demon Free Photoshop Brushes #2

66 in 80 All-You-Need Photoshop Brushes

Cloud Photoshop Brushes

68 in 80 All-You-Need Photoshop Brushes

Fur Photoshop Brushes

69 in 80 All-You-Need Photoshop Brushes

Fairy Tale Photoshop Brushes

71 in 80 All-You-Need Photoshop Brushes

Green Lotus Photoshop Brushes

72 in 80 All-You-Need Photoshop Brushes

Burnt Paper Brushes

74 in 80 All-You-Need Photoshop Brushes

Abstract Photoshop Brushes

75 in 80 All-You-Need Photoshop Brushes

Moon Photoshop Brushes

77 in 80 All-You-Need Photoshop Brushes

Photoshop Brushes Part 3

78 in 80 All-You-Need Photoshop Brushes

Random Splatter Brushes

80 in 80 All-You-Need Photoshop Brushes

Photoshop Brushes Vector Brushes

79 in 80 All-You-Need Photoshop Brushes

Influenced Photoshop Brushes

70 in 80 All-You-Need Photoshop Brushes

Technical Photoshop Brushes

73 in 80 All-You-Need Photoshop Brushes

(ik)


Documentation is freaking awesome

Slides and references links from my presentation I gave at Magic Ruby – Documentation is freaking awesome. Check it out if you’re curious.


  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress