Rendering with JUCE on macOS will produce different colours on OpenGL vs other renderers.
Why is this a mac issue?
Well… macOS does handle colour space conversions but they do it pretty much everywhere except OpenGL…
Sound Radix made the JUCE OpenGL renderer ‘mess’ with the
juce::Colour just before uploading it to OpenGL to overcome this difference.
You can try it out here:
- CoreGraphics and OpenGL should have equivalent colours.
(minor differences could be due to rounding errors, anti-aliasing premultiplying or text renderer).
juce::Imagedoes takes a little longer as conversion is done before uploading texture.
But your graphics designer won’t complain about you not using his colours palette!