Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Core Namespace / SchemeColor Structure / CreateHslColor Method
A double value indicates the angular value describing the wavelength. The value must be in 0..360.
A double value indicates the luminance referring to the lightness or darkness of the color. The value must be in 0.0..1.0. 0.0 referring to maximal dark (black) and 1.0 referring to maximal white.
A double value indicates the saturation referring to the purity of the hue. The value must be in 0.0..1.0.. 0.0 referring to grey, 1.0 referring to the purest form of the hue.


In This Topic
    CreateHslColor Method
    In This Topic
    Creates the color represented in HLS color.
    Syntax
    'Declaration
     
    
    Public Shared Function CreateHslColor( _
       ByVal hue As Double, _
       ByVal luminance As Double, _
       ByVal saturation As Double _
    ) As SchemeColor
    'Usage
     
    
    Dim hue As Double
    Dim luminance As Double
    Dim saturation As Double
    Dim value As SchemeColor
     
    value = SchemeColor.CreateHslColor(hue, luminance, saturation)
    public static SchemeColor CreateHslColor( 
       double hue,
       double luminance,
       double saturation
    )

    Parameters

    hue
    A double value indicates the angular value describing the wavelength. The value must be in 0..360.
    luminance
    A double value indicates the luminance referring to the lightness or darkness of the color. The value must be in 0.0..1.0. 0.0 referring to maximal dark (black) and 1.0 referring to maximal white.
    saturation
    A double value indicates the saturation referring to the purity of the hue. The value must be in 0.0..1.0.. 0.0 referring to grey, 1.0 referring to the purest form of the hue.

    Return Value

    A SchemeColor value represents the color
    See Also