Jump to content

Recommended Posts

Posted

There are two issues with interpolated midpoint colors in gradients:

1. If you have an object filled with a gradient in an RGB document, and then you change the document color space to LAB, then the gradient’s interpolated midpoint colors change drastically, even though the endpoints (stops) are the same.

2. If, while in the LAB color space, you edit the gradient by inserting a midpoint, the new stop that gets inserted does not match the color that was previously the interpolated midpoint. In fact, the new stop appears to be calculated as if it were in RGB.

Here is a video demonstration:

I would not be surprised if one of these two issues are “as designed,” but I doubt both are, as they are contradictory: when rendering interpolation of gradients, the interpolated color values are calculated based on the document color space, but when adding stops to a gradient, the new stops inserted are taken from the interpolated values based on RGB regardless of the document color space.

I was using Designer 1.9.3 on macOS 10.14.6 in the video. This bug report is a followup on a feature request discussion about how Affinity interpolates colors.

gradient_test.afdesign

  • Staff
Posted

Hi Garretm30,

Point 1 is to be expected - as you're using a different colour mode, the blending between colours is going to be very different using Lab to RGB. This can also be seen in Photoshop as well when switching between RGB and Lab. Interestingly Photoshop always shows the preview of it rendered in RGB! - See below.

As for Point 2 - This does look wrong - I suspect it should take the midpoint of what you see in Lab, but instead it does appear to be doing it as though it was RGB as you say. I'll get this passed on and check with development.

Posted
22 minutes ago, Sean P said:

Point 1 is to be expected

[…]


As for Point 2 - This does look wrong

That makes sense. I thought it was either one or the other that was "as designed," but I was not 100% certain which it was.

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.