@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 }
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 }
npm i @fantasy-color/invert-rgb
7
2.1.0
MIT
3.95 kB
9