tips/tricks for drawing color-managed color picker controls?

Paul Miller <pa...@...>

I'm working on a new set of color picker controls that are properly managed with OCIO.

For simple pots I can just transform each color before painting with my toolkit (I'm not going through OGL for these).

But for more complex controls like color spectrums and color-backed alpha spreads, is there anything other than rendering the control (in float) to a temporary buffer, doing the apply on the buffer, then clipping the buffer (color-wise) to the display?

For example, I'm assuming transforming/clipping each point of a gradient is not the same as generating the gradient in float and transforming/clipping each pixel of it independently?