Version

GetAHSVInterpolation Method

Get an interpolated color between two colors.
Syntax
'Declaration
 
Public Shared Function GetAHSVInterpolation( _
   ByVal minimum() As Double, _
   ByVal interpolation As Double, _
   ByVal maximum() As Double _
) As Color
public static Color GetAHSVInterpolation( 
   double[] minimum,
   double interpolation,
   double[] maximum
)

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

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