Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / ColorF Structure / Lerp Method
Start color.
End color.
Value between 0 and 1 indicating the weight of end.

In This Topic
    Lerp Method (ColorF)
    In This Topic
    Performs a linear interpolation between two colors.
    Syntax
    'Declaration
     
    Public Shared Function Lerp( _
       ByVal start As ColorF, _
       ByVal end As ColorF, _
       ByVal amount As System.Single _
    ) As ColorF
    public static ColorF Lerp( 
       ColorF start,
       ColorF end,
       System.float amount
    )

    Parameters

    start
    Start color.
    end
    End color.
    amount
    Value between 0 and 1 indicating the weight of end.

    Return Value

    The linear interpolation of the two colors.
    Remarks
    This method performs the linear interpolation based on the following formula. start + (end - start) * amount Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
    See Also