🔄 Inverts the red, green, and blue components of a color.
Syntax
import { colorInvert } from '@opentf/std';
colorInvert(input: any, format?: ColorFormat): anyformat: The output format (default:'hex').
Examples
colorInvert('white'); //=> '#000000'
colorInvert('black'); //=> '#ffffff'
colorInvert('red'); //=> '#00ffff'