ixfx
    Preparing search index...

    Function tryParseObjectToHsl

    • If the input object has h, s and l properties, it will return a fully- formed Hsl type with unit and space properties.

      If it lacks these basic three properties or they are out of range, undefined is returned.

      If HSL values are less than 1 assumes unit:scalar. Otherwise unit:8bit. If HSL values exceed 100, undefined returned.

      Parameters

      • v: any

      Returns Hsl | undefined

      Hsl object or undefined if the input object is not a valid Hsl type.