Version

GetInterpolation Method (ColorUtil)

Get an interpolation from the current color to the specified color
Syntax
'Declaration
 
Public Shared Function GetInterpolation( _
   ByVal minimum As Color, _
   ByVal interpolation_ As Double, _
   ByVal maximum_ As Color, _
   ByVal interpolationMode As InterpolationMode _
) As Color
public static Color GetInterpolation( 
   Color minimum,
   double interpolation_,
   Color maximum_,
   InterpolationMode interpolationMode
)

Parameters

minimum
begin color, corresponding to p=0.0
interpolation_
interpolation parameter assumed to be in [0.0, 1.0]
maximum_
end color, corresponding to p=1.0
interpolationMode
Interpolation mode to use.

Return Value

new color corresponding to the specified interpolation parameter
Remarks
There are always two interpolation paths for the hue, and this function chooses the shortest one, so for example an interpolation from red to blue runs through purple, not orange, yellow and green.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also