Bitbybit Docs
    Preparing search index...

    Class HslDto (Inputs.Color)

    A hue, a saturation and a lightness for color.hslToHex.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalhue: number
      • Optionalsaturation: number
      • Optionallightness: number

      Returns HslDto

    Properties

    hue?: number

    The hue in degrees round the color wheel: 0 red, 120 green, 240 blue; any angle is taken whole turns aside.

    210
    

    -Infinity

    Infinity

    1

    saturation?: number

    How strong the color is, from 0 for grey to 1 for the purest hue; a value outside that is held at the nearer end.

    0.6
    

    -Infinity

    Infinity

    0.05

    lightness?: number

    How light the color is, from 0 for black through 0.5 for the full hue to 1 for white; a value outside that is held at the nearer end.

    0.5
    

    -Infinity

    Infinity

    0.05