Linear interpolation (blending) between two colors

Namespace: VVVV.Utils.VColor
Assembly: VVVV.Utils (in VVVV.Utils.dll) Version: 1.0.4694.10871

Syntax

C#
public static RGBAColor LerpRGBA(
	RGBAColor Col1,
	RGBAColor Col2,
	double x
)

Parameters

Col1
Type: VVVV.Utils.VColor..::..RGBAColor

[Missing <param name="Col1"/> documentation for "M:VVVV.Utils.VColor.VColor.LerpRGBA(VVVV.Utils.VColor.RGBAColor,VVVV.Utils.VColor.RGBAColor,System.Double)"]

Col2
Type: VVVV.Utils.VColor..::..RGBAColor

[Missing <param name="Col2"/> documentation for "M:VVVV.Utils.VColor.VColor.LerpRGBA(VVVV.Utils.VColor.RGBAColor,VVVV.Utils.VColor.RGBAColor,System.Double)"]

x
Type: System..::..Double
Blending factor, 0..1

Return Value

Linear interpolation (blending) between Col1 and Col2 if x in the range ]0..1[, Col1 if x = 0, Col2 if x = 1

See Also