Files
infocom-systems-design/node_modules/khroma/dist/methods/darken.js
2025-10-03 22:27:28 +03:00

9 lines
195 B
JavaScript

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