Jump to content

LAB Interpolation for Gradients


Recommended Posts

Is there any plans to add CIE-LAB gradients for affinity? I've been playing around with them in Python and LAB-interpolated gradients look a lot better than RGB-interpolated gradients, especially for backgrounds and things like that. I looked through the SVG standard and SVG supports CIELAB interpolation, along with a few others. So is there any plans to add alternate gradient interpolations to Affinity designer? Or even a full LAB color space, like in Affinity Photo or photoshop? 

 

I added a photo for anyone that's interested (CIELAB on the left)

CIELAB example.png

Edited by yitzaklr@aol.com
L/R dyslexic
Link to comment
Share on other sites

Hello Yitzaklr,

welcome to the forum. First off I want to kindly suggest to change your forum name to something different than your email adress. Otherwise you will be swamped with spam mails over time.

Quote

Is there any plans to add CIE-LAB gradients for affinity?

You can already set the colour stops of a gradient with LAB values. In the colour selector choose 'LAB' sliders from the drop down at the top.

But I am not quite sure if this affects the way the gradients are calculated.

Cheers,
d.

Affinity Designer 1.10.5 (beta 1.10.5.1342 (RC2))  |   Affinity Photo 1.10.5 (beta 1.10.5.1342 (RC3))   |   Affinity Publisher 1.10.5 (beta 1.10.5.1282 (RC))
Affinity Designer for iPad 1.8.4   |   Affinity Photo for iPad 1.8.4

Windows 10 (19044.1586) 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Link to comment
Share on other sites

4 hours ago, yitzaklr said:

I noticed the LAB color settings, but was wondering if there'd be any way to get deeper into it, like LAB filters and LAB gradients.

As dominik mentioned, you can already use LAB to set the gradient stops. Perhaps you could do an experiment with one gradient to compare an Affinity gradient using RGB, one using LAB, and the equivalent gradient from your Python program to see how they compare?

Also, of course, you could set your document to LAB when creating it (or later) and work entirely in that color representation, and see how the gradients (and filters) compare there.

-- Walt

   Desktop: new:  Windows 11 Home, version 21H2 (22000.613) 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090  (old: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970 )
   Laptop:  Windows 10 Home, version 21H2 (19044.1706) 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Affinity Photo 1.10.5 (.1342) and 1.10.5.1342 Beta   / Affinity Designer 1.10.5 (.1342) and 1.10.5.1342 Beta  / Affinity Publisher 1.10.5 (.1342) and 1.10.5.1282 Beta
 iPad Pro M1, 12.9", iPadOS 15.4.1, Apple Pencil 2, Magic Keyboard

  Affinity Photo 1.10.5 (.280) and 1.10.2 (.266) Beta / Affinity Designer 1.10.5 (.21) and 1.10.3 (.19) Beta 

Link to comment
Share on other sites

  • 10 months later...
On 1/8/2021 at 7:13 AM, walt.farrell said:

As dominik mentioned, you can already use LAB to set the gradient stops. Perhaps you could do an experiment with one gradient to compare an Affinity gradient using RGB, one using LAB, and the equivalent gradient from your Python program to see how they compare?

I tried this and as far as I can tell the interpolation of the gradient colors is being done in RGB regardless of the color space used to set the gradient stops.

Link to comment
Share on other sites

On 11/26/2021 at 7:04 PM, G7495x said:

You can try altering the color space and see the difference in this tool... This would be one hell of an addition to Affinity. Please consider.

Which of four lines (the original plus the three lines I drew) is the most correct or incorrect?

466530082_ScreenShot2021-11-28at10_41_25AM.png.cdd71c2a40f2104311a2cdfc3a71d1c8.png

MacBook Pro (13-inch, Mid 2012) Mac OS 10.12.6 || Mac Pro (Late 2013) Mac OS 11.6.8

Affinity Designer 1.10.5 | Affinity Photo 1.10.5 | Affinity Publisher 1.10.5 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

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...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. 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.