2026-05-31 13:54:31 +02:00

9 lines
203 B
JavaScript

/* IMPORT */
import adjustChannel from './adjust_channel.js';
/* MAIN */
const desaturate = (color, amount) => {
return adjustChannel(color, 's', -amount);
};
/* EXPORT */
export default desaturate;