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

    Function reverseRgb

    • Returns the reversed rgb color from the given color

      Parameters

      • Optionalrgb: string | [r: number, g: number, b: number]

        the rgb color to inspect

      Returns undefined | string

      the reversed rgb color from the given color

      David Hsing

      reverseRgb('rgb(0, 0, 0)');    // 'rgb(255, 255, 255)'
      reverseRgb([255, 255, 255]); // 'rgb(0, 0, 0)'