Hi PG,
Ok, so we have two colours, colour1 and colour2. Each colour has three components - red, green and blue. Normally when you're talking about a colour you really mean something described by the three separate components. A componentwise add operation looks like this:
finalColour.red =
colour1.red +
colour2.redfinalColour.green = colour1. green + colour2. green
finalColour.blue = colour1. blue + colour2. blue
A componentwise multiply operation looks like this:
finalColour.red =
colour1.red x
colour2.redfinalColour.green = colour1. green x colour2. green
finalColour.blue = colour1. blue x colour2. blue
To put this into context, using an Add colour node, colour1 would be the value connected to the Input node input, colour2 would be the value connected to the Input 2 input and finalColour would be the value coming out of the output.
A colour isn't bitwise ( that doesn't really make in this context ). Each component of the colour is a decimal value ( floating point in computer speak ). The "normal" maximum value of a colour component is 1.0 ( i.e. red = 1.0, green = 1.0, blue = 1.0 is white and red = 0.5, green = 0.5, blue = 0.5 is mid grey ). 1.0 is equivalent to 255 if you are used to using 255 for maximum colour values.
However, because TG2 uses high dynamic range colour throughout you can use colour values greater than 1.0, or even less than 0.0 ( the normal minimum value ) if you have a reason to. Normally you'd probably want to keep them between 0.0 and 1.0 though. The clamp functions help you to do this.
Regards,
Jo