@fantasy-color/invert-rgb
v2.1.0
Published
Invert the RGB color object
Downloads
11
Keywords
Readme
@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 }