myColor.linear( targetColor, weightFactor ) in Anark Studio 2.5

Move the color towards another color.


targetColor Color The color to weight towards.
weightFactor Number The weighting factor for the i
Return Type


Performs a linear interpolation between the current color and the specified color, treating both as 4D vectors. The current color acts as the source of the interpolation and Color acts as the target. The interpolation of each component uses the following formula: new = current + weightFactor * (targetColor - current) Where weightFactor is the weighting factor for the interpolation. If weightFactor is 0.0, then the color remains the current color. If it is 1.0, then the new color is the same as targetColor.