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

    Function reverseHex

    • Returns the reversed hex color from the given color

      Parameters

      • Optionalhex: string

        the hex color to inspect

      Returns undefined | string

      the reversed hex color from the given color

      David Hsing

      reverseHex('#000');    // 'rgb(255, 255, 255)'
      reverseHex('#fff'); // 'rgb(0, 0, 0)'