Expressions mix slider for blending between RGB white and input color
I ain't the smartest when it comes to math and code. I have a setup that controls a color with two operators. A color picker and a slider that multiplies. Current code:
// Get params
baseColor = effect("Linear Gain")("Color");
gain = effect("Linear Gain")("Gain");
// Multiply the color by the gain value
[baseColor[0] * gain, baseColor[1] * gain, baseColor[2] * gain, baseColor[3]];
I'd like to add an additional slider that can go from 0-100(%) that can control the amount of change from 0% which should result in [1,1,1,1float] ie. 'white' to the specified color*gain result being 100%.
Would love to have some assistance with this.

