Jump to content
Wizaerd

Create a gradient that follows a shape

Recommended Posts

I'm finding the gradient options in Affinity to be less than stellar.  I'm trying to manually create depth maps for an image, but need gradients that conform to a shape, or follow a contour.  Is there any way to do this within Affinity Designer or Photo?

Share this post


Link to post
Share on other sites

You can create a brush that has a gradient to it and apply that to a path that follows a shape.

But... It has side affects as the brush bends around an internal corner, imagine several layers of semi transparent layers overlapping.


iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Share this post


Link to post
Share on other sites

Hi, Wizaaerd,

Look at the fx options, such as 3d and bevel/emboss, etc. Those apply a bit map overlay in and/or around the vector perimeter.

Gradients.jpg.105261761ee42e31b3a7a6bd932a54eb.jpg


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
Guest

Hello Wizaerd,

I don't know if this would be convenient for you, but with Designer you can simulate the gradient using the fx "Outline". The disadvantage is that you have to start from the center, adding inner outlines doesn't work properly or I miss something.

Draw the shape, apply an external "Outline" fx of the desired colour and thickness. Right-click on the shape and choose "Group". Then apply as many outlines as necessary by grouping before adding a new one.

To obtain the gradient effect, add a fx "Gaussian blur" by checking the box "Preserve alpha".

This workaround is far from ideal and the rendering is not great, but...

Dégradé forme.png

Share this post


Link to post
Share on other sites
6 hours ago, reglico said:

.... with Designer you can simulate the gradient using the fx "Outline". The disadvantage is that you have to start from the center, adding inner outlines doesn't work properly or I miss something.

Don't overlook the Contour setting for the FX Outline! :) Gradient is right there.
(inside works, u just need to have a fill for the object.... opacity then can be set inside the FX Outline dialog if needed.)
(if you want to blur it further do as @reglico suggested: group the single object and add an FX Gauss Blur protect alpha)

1079323454_ScreenShot2018-10-05at11_11_13AM.thumb.png.5856b3c6091f26d53d3a71c26d75b36c.png

 

Share this post


Link to post
Share on other sites
Guest

Hello JimmyJack,

I don't know if I'm doing it wrong, but here the "Inside Outline" fx doesn't work as expected: the first added contour fits well inside the shape, but the next ones start from the outside and cover the previous ones.

In my screenshot, the first outline is blue, the second is green and the third is brown.

Contour intérieur.png

Share this post


Link to post
Share on other sites

Hi @reglico,

I guess the main point of my post was that one can have a gradient follow the outline of a shape with a single FX using Fill Style: Contour..... instead of Solid Colour.

But if I understand your question correctly, (and you still want to using a group inside a group inside a group etc), All those groups share the same object border.
So each "Inside Stroke" starts from the same point. Each subsequent Inner outline will obscure the ones bellow it. So as the stack gets longer each outline will need a thinner dimension. It sounds like you expected each level of outline to start where the one below left off? In other words I think it's behaving properly. Unless I'm missing something..

 

Share this post


Link to post
Share on other sites
Guest

@JimmyJack,

I feel stupid, I haven't noticed the "Fill" window in the "Outline" tab yet! If I had noticed it earlier I wouldn't have fought with the addition of multiple contours! Fortunately, you posted your screenshot. At first I even thought there was a difference between Mac and Windows.

I owe you a big thank you, I learned something again today and I'll fall asleep a little less stupid tonight!

Share this post


Link to post
Share on other sites
On 10/4/2018 at 9:02 PM, Wizaerd said:

I'm finding the gradient options in Affinity to be less than stellar.  I'm trying to manually create depth maps for an image, but need gradients that conform to a shape, or follow a contour.  Is there any way to do this within Affinity Designer or Photo?

Is this that Vectorstyler has, what you are looking for? 

image.thumb.png.33adec9e53868072d685194cda0cfa6f.png


I gave up using Designer for hobby use - a "professional" vector drawing program without actual vector features. Customers waiting for five years in vain is more than any company can ask for. Maybe if Affinity Designer 2.0 gets real and advanced vector features I can use it. Until then... I am a customer, a potential upgrader and an active observer with an opinion. Currently I am slowly finishing a project I started in Designer.

Further... give up and please hire an UX (usability designer), Serif. It is how professional software is made in this century.

Share this post


Link to post
Share on other sites
21 hours ago, grafika said:

 

Or just use the gradient "Across Stroke" option (in VectorStyler).

 

 

gradient.png

Also interesting :)


I gave up using Designer for hobby use - a "professional" vector drawing program without actual vector features. Customers waiting for five years in vain is more than any company can ask for. Maybe if Affinity Designer 2.0 gets real and advanced vector features I can use it. Until then... I am a customer, a potential upgrader and an active observer with an opinion. Currently I am slowly finishing a project I started in Designer.

Further... give up and please hire an UX (usability designer), Serif. It is how professional software is made in this century.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. 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.