@fantasy-color/invert-rgb
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@fantasy-color/invert-rgb

Invert the RGB color object.

type invertRgb = (color: RGB) => RGB

Example usage:

import invertRgb from '@fantasy-color/invert-rgb'

invertRgb({
  red: 60,
  green: 32,
  blue: 23
})
// { red: 195, green: 223, blue: 232 }

Readme

Keywords

none

Package Sidebar

Install

npm i @fantasy-color/invert-rgb

Weekly Downloads

7

Version

2.1.0

License

MIT

Unpacked Size

3.95 kB

Total Files

9

Last publish

Collaborators

  • ijigg
  • moria.am
  • atilaz
  • gideon.gur
  • irminakacz
  • fernando.3
  • xaviervia
  • psxcode
  • deepsweet