Remix.run Logo
virtualritz 5 days ago

This looks juicy! :)

@mindbrix does it blend colors in linear space/are colors linearized internally?

samiv 5 days ago | parent | next [-]

Once you do color space correct color mixing you realize that people actually expect the wrong result, i.e. the result you get from mixing in sRGB and then you have to make the rendering output visually more "correct" by making it incorrect. One of the cases where the correct computation is the wrong answer.

Heck, that's what people expect with CSS for example.

mindbrix 5 days ago | parent [-]

My reference renderer has been Core Graphics. If it looks like CG I assume it's OK - and if it's not OK I'm in good company ;-)

You can switch between CG and Rasterizer in the demo app using the 0 key to see the difference for yourself.

mindbrix 5 days ago | parent | prev [-]

Linear at present.