Page 1 of 1

Color space conversions and Magic

Posted: Mon May 17, 2021 6:56 am
by jhinden
I'm wondering how color space is handled in Magic. I'm assuming everything happens in the SRGB color space or is it module dependent?

The reason I'm asking is because I've recently made some modules to convert to linear srgb and back though they don't seem to be working properly. If I write the linear to srgb and srgb to linear conversion all within the module itself it appears to work fine.

For example:
I have two solid color modules that feed a gradient module that take an external input.
I'd like to insert an srgb to linear module between then two and a linear to srgb module after the gradient.

Can I expect this to work? Any information as to how color spaces work in Magic between modules would be appreciated.

Thanks

Re: Color space conversions and Magic

Posted: Mon May 17, 2021 2:33 pm
by Magic
Magic uses generic RGB.

Re: Color space conversions and Magic

Posted: Tue May 18, 2021 11:55 am
by jhinden
Thanks