@yookue/ts-lang-utils
    Preparing search index...

    Function hslToHex

    • Returns the converted hex color from the given hsl color

      Parameters

      • Optionalhsl: string | [h: number, s: number, l: number]

        the hsl color to inspect

      Returns undefined | string

      the converted hex color from the given hsl color

      David Hsing

      hslToHex('hsl(360, 1, 0.5)');    // '#ff0000'
      hslToHex([360, 1, 0.5]); // '#ff0000'