UNPKG

@kcuf/mere-color

Version:

Mere color utils for generating, manipulation, a11y purposes.

13 lines (12 loc) 333 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = invert; var _util = require("../util"); /** * Inverts the r/g/b channel of a color, returning the new color in the original notation normalized. */ function invert(color) { return (0, _util.manipulateRgb)(color, _util.rgbInvert); }