Color ConvertGithub

Input

R, G, B
H, S, L
H, S, V
# is optional

Install

npm install --save @youc/colorconvert

Node Env

const cc = require('@youc/colorconvert');
cc.rgb2hsl(255, 34, 178);

ES6 Env

import cc from '@youc/colorconvert';
cc.rgb2hsl(255, 34, 178);

Borwser Env

<script src="./colorConvert.min.js"></script>

<script>
var cc = window.colorConvert;
cc.rgb2hsl(255, 34, 178);
</script>