feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+16
View File
@@ -0,0 +1,16 @@
/* IMPORT */
import Color from '../color/index.js';
import change from './change.js';
/* MAIN */
const adjust = (color, channels) => {
const ch = Color.parse(color);
const changes = {};
for (const c in channels) {
if (!channels[c])
continue;
changes[c] = ch[c] + channels[c];
}
return change(color, changes);
};
/* EXPORT */
export default adjust;