mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-23 07:01:53 +02:00
9 lines
230 B
JavaScript
9 lines
230 B
JavaScript
/* IMPORT */
|
|
import _ from '../utils/index.js';
|
|
import Color from '../color/index.js';
|
|
/* MAIN */
|
|
const channel = (color, channel) => {
|
|
return _.lang.round(Color.parse(color)[channel]);
|
|
};
|
|
/* EXPORT */
|
|
export default channel;
|