Solved

Apply a gradient to a curved shape

Posted on 2004-10-27
1,173 Views
Last Modified: 2008-02-26
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
Question by:japly53
    10 Comments
     
    LVL 16

    Expert Comment

    by:kiranvj
    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
     
    LVL 2

    Author Comment

    by:japly53
    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
     
    LVL 16

    Expert Comment

    by:kiranvj
    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
     
    LVL 16

    Assisted Solution

    by:kiranvj
    hi..

    chk the link .. may be useful to u

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

    kiranvj
    0
     
    LVL 2

    Author Comment

    by:japly53
    So, there is NO way to draw the shape distorted first (not a straight line) then apply the gradient?
    0
     
    LVL 16

    Expert Comment

    by:kiranvj
    uumm no idea.. i will post if i find a method
    0
     
    LVL 6

    Expert Comment

    by:mrwebdev
    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
     
    LVL 3

    Expert Comment

    by:Sasho
    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
     
    LVL 1

    Assisted Solution

    by:graphicjunkie
    This might be helpful:

    http://www.phong.com/tutorials/wire/
    0
     
    LVL 4

    Accepted Solution

    by:
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Course: JavaScript Coding - Massive 12-Part Bundle

    Regardless of your programming skill level, you'll go from basics to advanced concepts in a vast array of JavaScript subjects including Sammy.js, Agility.js, Ember.js, Node.js, jQuery, AJAX, Extjs, AngularJS, Knockout.js, and JSON.

    Introduction When sharing photos, especially via e-mail, the large resolution images that most cameras take today make for extremely large file sizes. The time required to upload these files to forums, send in e-mails, post to blogs or even placi…
    Read about why website design really matters in today's demanding market.
    In this tutorial viewers will learn how to correct colors in Photoshop using the Hue and Saturation adjustment Open a photo for editing in Photoshop: Begin by creating a new adjustment layer by going to Layer > New Adjustment Layer > Hue and Saturat…
    In this tutorial viewers will learn how to create a Photoshop action to apply adjustments and effects to multiple images. Open a photo for editing in Photoshop: Open the Actions window by going to Window > Actions: Start a new action by selecting th…

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now