Looking for an expression to automatically generate complementary colours. So far I have this (below) but it's not working for me, and I can't figure out why.
Code: Select all
Col = thisComp.layer("LIGHT CONTROLLERS").effect("Color 001")("Color") ;
BitD = 32768;
R = Math.round(Col[0]*BitD);
G = Math.round(Col[1]*BitD);
B = Math.round(Col[2]*BitD);
A = Math.round(Col[3]*BitD);
[BitD - R,BitD - G,BitD - B,A]
Bascially I'm applying this expressioon to a fill effect on another layer to generate the complementary colour. Working in 16 bit, hence the 32768. I've applied the esxpression to a text layer and the results I'm getting I don't understand. I seem to be getting the correct answer mulitplied by 32768 for some reason but I can't see where I'm going wrong.
Any help?
It's not the dog in the fight, it's the fight in the dog that matters.