@kcuf/mere-color
Version:
Mere color utils for generating, manipulation, a11y purposes.
13 lines (12 loc) • 305 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = grayscale;
var _util = require("../util");
/**
* Turn a color into grayscale, by reducing its saturation to 0.
*/
function grayscale(color) {
return (0, _util.manipulateRgb)(color, _util.rgbGrayscale);
}