You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So if the user defines two RGBa colors without specifying linearity, and then blend them, the resulting sequence will have unequal distances, because ColorRGBa.toSRGB() will treat UNKNOWN inputs as if they are LINEAR:
This is unintuitive. Maybe either make the default linearity of ColorRGBaSRGB (like the predefined colors), or don't force the ColorSequence outputs in SRGB to avoid confusion?
The text was updated successfully, but these errors were encountered:
orx/orx-color/src/main/kotlin/palettes/Palettes.kt
Line 57 in 65ca1ce
Currently, all colors will be converted to SRGB before being returned. However, the default linearity of an RGBa color is UNKNOWN:
https://github.com/openrndr/openrndr/blob/563c1cd36ad4b65399ccfaee7928013ef99289ab/openrndr-color/src/main/kotlin/org/openrndr/color/ColorRGBa.kt#L30
So if the user defines two RGBa colors without specifying linearity, and then blend them, the resulting sequence will have unequal distances, because
ColorRGBa.toSRGB()
will treatUNKNOWN
inputs as if they areLINEAR
:https://github.com/openrndr/openrndr/blob/563c1cd36ad4b65399ccfaee7928013ef99289ab/openrndr-color/src/main/kotlin/org/openrndr/color/ColorRGBa.kt#L228
This is unintuitive. Maybe either make the default linearity of
ColorRGBa
SRGB
(like the predefined colors), or don't force theColorSequence
outputs inSRGB
to avoid confusion?The text was updated successfully, but these errors were encountered: