This commit is contained in:
nik
2025-10-03 22:27:28 +03:00
parent 829fad0e17
commit 871cf7e792
16520 changed files with 2967597 additions and 3 deletions

13
node_modules/khroma/dist/methods/change.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
/* IMPORT */
import _ from '../utils/index.js';
import Color from '../color/index.js';
/* MAIN */
const change = (color, channels) => {
const ch = Color.parse(color);
for (const c in channels) {
ch[c] = _.channel.clamp[c](channels[c]);
}
return Color.stringify(ch);
};
/* EXPORT */
export default change;