Jump to content

Having gradient run ONCE on multi-point line?

Recommended Posts

Hi.  I have a vector line (with multiple points/elbows), and I want to run a multi-colour linear gradient along the length of it.

So, I made my line, then created a linear stroke gradient (with 4 colours) for it.

However, it applies the gradient for each section of the line (from point to point... or elbow to elbow), rather than applying the gradient ONCE across the entire length of the line.

How do I apply a multi-colour gradient across the entire length of a multi-point line ONCE, without having it do the entire gradient range across EACH segment of the line?

NOTE: I do not want it to apply a SINGLE colour on each segment (ex. First segement is blue, second segment is green, etc)...  but, instead, just apply the entire gradient range over the entire length of the line based on DISTANCE, not segments.  In the attached pic, you see the line I want to apply the gradient to... but, currently, the gradient is applied, in full, to each segment, rather than across the entire length (once) of the line.

Also, why is it that the gradient isn't really oriented to the angle of the line, but rather always aligned to an either pure vertical or horizontal axis?  (90 degrees)

Any help?



UPDATE: Okay, so I think I just discovered/realized one thing...  The gradient doesn't follow the line/curve itself, but instead is a single line gradient that simply 'shows through' the overall shape of the entire shape...   In the case of the attached sample image, that gradient is going left to right... which explains both why the transitions are not aligned to the lines, as well as why the gradient seems to go through random phases in the colours, rather than a predictable one (...until you realize the gradient is a single line going left to right, and that the colour is entirely dependent on the horizontal position of the current area of the line, not the distance through it).

So, that explains that...  but, I'm wondering if there IS a way to do what I'm trying to do... aside form making the curve using multiple, separate straight line segments, each with their own gradient.

Share this post

Link to post
Share on other sites

As you already figured that linear just means gradients along a certain axis - you may consider an Textured image Brush which tries to follow the curves:



Share this post

Link to post
Share on other sites

Not quite what is wanted, but an idea for an approximation:


iMac 27" Retina, c. 2015: OS X 10.11.5: 3.3 GHz I c-5: 32 Gb,  AMD Radeon R9 M290 2048 Mb

iPad 12.9" Retina, iOS 10, 512 Gb, Apple pencil

Huion WH1409 tablet

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.