ixfx
    Preparing search index...

    Function tryParseObjectToRgb

    • If the input object has r,g&b properties, it will return a fully- formed Rgb type with unit and space properties.

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

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

      Parameters

      • v: any

      Returns undefined | Rgb