• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1177
  • Last Modified:

Apply a gradient to a curved shape

Image I reference to: http://img50.exs.cx/img50/602/gradient.jpg 

So, I want to know what is the best way to apply a gradient to a curved shape as in "shape A" ( I used the shear filter, which is not what I want to do). I want to draw my shape with the pen tool first, then add the gradient to it.  As you can see in "shape C", it didn't work. I want the gradient to follow the shape. Anybody have any suggestions?

Thanks.
0
japly53
Asked:
japly53
3 Solutions
 
Kiran Paul VJComputer EngineerCommented:
hi japly53,

try this
1. draw ur shape with the pen tool
2. Apply gradient.
3. now the shape with gradient will look like shape B on ur image
4. Now create a new layer
5. Link this new layer with the layer u drew the shape.
6. Then merge the linked layers (Layer-> merger linked).
7. Now apply the filter (Filter->Distort->twril or any othe filter u want)

NB : steps 5 and 6 are important

hope this helps
kiranvj
0
 
japly53Author Commented:
The instruction you gave is how I made the shapes in the image. My question is how would I draw a shape like this: http://img92.exs.cx/img92/233/shape.gif   and apply the gradient to it so that the gradient will follow the shape as in shape C in this image: http://img50.exs.cx/img50/602/gradient.jpg If I apply the gradient normally, the shape would look like shape B, and that's what I don't want.
0
 
Kiran Paul VJComputer EngineerCommented:
hi..

You want to first draw a shape and then apply gradient. Is this what u are looking

in my method , first draw the shape straight, apply gradient, then distrort.

kiranvj
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Kiran Paul VJComputer EngineerCommented:
hi..

chk the link .. may be useful to u

http://www.heathrowe.com/tuts/tentacles.asp

kiranvj
0
 
japly53Author Commented:
So, there is NO way to draw the shape distorted first (not a straight line) then apply the gradient?
0
 
Kiran Paul VJComputer EngineerCommented:
uumm no idea.. i will post if i find a method
0
 
mrwebdevCommented:
This is about as close as I can get!

http://www.fanagle.com/ee/shape.jpg - Image
http://www.fanagle.com/ee/shape.psd - File

I used the select (black) color, and then the color overlay (White) and inner glow (Black).

Hope this helps for your project!

Good Luck!
0
 
SashoCommented:
Take a look at this. http://tzonkov.ww4.us/gradient.gif

Let me know if this is close enough to what you are looking for and I'll list my steps.
0
 
graphicjunkieCommented:
This might be helpful:

http://www.phong.com/tutorials/wire/
0
 
dearsinaCommented:
There is no way of using the gradient tool, it's not in the nature of the tool to shape to a form. It will always fill a "straight" gradient.

The easiest way around this is to fill your shape with one of the two gradient colours then use layer effects to create the other one. Inner Glow or Bevel and Emboss should do the trick, although you might want to create a layer from the effect and change the endings as they will be "rounded" by the effect.

sina
london
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now