Jump to content
You must now use your email address to sign in [click for more info] ×

Bending gradient from center of curved shape


Recommended Posts

Is there any way to specify a gradient that spreads consistently from the center of a curved shape? Such that the gradient would be darkest along this red line and lightest at the edges of the shape?

1937251570_gradientfrommiddlevector.png.e504abcc9054aa429dfdcd80af4613b4.png

Here's a drawing example of what it would look like kind of.

6170682_gradientfrommiddle.jpg.f4f681af90af76cbd11855029da172cf.jpg

Link to comment
Share on other sites

Try draw this with Pen, soft Brush and with pressure. 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Gradients are just straight at the moment. They can neither be curved nor follow a path or more than an angle. Gradients lack Bezier.

Curving gradients feels currently like infinity: I may come close but never reach it.

490690561_gradientcurve-linear.jpg.e9f5bda5747e4ba98547db45bad646de.jpg

2084948232_gradientcurve-appearencepanel.jpg.7b7165f2ccd94c16e2156b382278a30b.jpg

 

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

You could use strokes and blurs.

image.png.23b8aac29c116152a70ef2f30c2677bc.png

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
Share on other sites

A softer blend can also be achieved, so I created the horn shape, added some coloured curves with a pressure profile applied so that the stroke tapered at the bottom and blurred them. that effect can be seen in the post above.

To get a finer transition I duplicated the horn shape and deleted the the nested strokes, then placed the original horn shape with the nested strokes and their blur fx into the new duplicate horn shape, this acts as a container/clipping mask for the next level of blur that I added to the original horn shape that contains the blurred strokes. This sounds complex but actually isn’t. horns.afdesign
image.png.d4bf94a1db9692376557bbf2dba64c0f.png

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
Share on other sites

In addition to the advice above, my attached video shows one technique that might be useful in some circumstances, maybe after some tweaking. (Apologies if I’ve accidentally copied techniques from above but some of those posts don’t show many details.)
Putting a gradient along a curve within a shape is more difficult than it seems at first because to get the required result you have to be absolutely sure about what you want it to do at all points along the curve. In other words, how should the gradient ‘fall-off’ at each point along the curve within the shape at different widths of the shape and how should it reduce. Tricky to get right.

Link to comment
Share on other sites

Never think to use the outline fx but good tip, the only concern I have is it’s constant width, even with a pressure curve applied the contour still stays a constant width.

If there was a Pressure curve as part of the outline fx contour option, that would be an interesting option.

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
Share on other sites

The idea just popped into my head but I agree that some kind of ‘pressure curve’ for the outline width could be useful, otherwise the technique I posted has limited utility for what I think Samweow wants.
I guess the best solution probably depends on exactly what they want and how much thought they have put into what they want. (I often get ideas that I think should be easy but end up being difficult to do in practice because I haven’t thought enough about the details, especially when it comes to things like shadows – e.g. simulating 3D in 2D.)

Link to comment
Share on other sites

After some playing around the three nested curves creating the colour, highlight and shadow do not require blurring although it can add subtly to the effect, As with all of this trying out different techniques is half the creative fun. 😊

PS. It’s nice to bounce idea’s around and maybe come to a workable solution.

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
Share on other sites

Getting some good methods, always learning 👍

 

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
Share on other sites

Yes It’s the banding as the straight gradient curves that stands out although it’s an effect in itself 😊

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
Share on other sites

13 hours ago, Pšenda said:

Try draw this with Pen, soft Brush and with pressure. 

For example this.
image.png.f69cba34346695bcb1a4a223a71949b0.png image.png.6c79fc55387226e74e23f458c9b5b3bf.png

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

looking better Garry

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

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

Link to comment
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

Terms of Use | 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.