mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
config redirect
This commit is contained in:
+16
@@ -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;
|
||||
Reference in New Issue
Block a user