/**
* js/utils.js
*
* basic tools
*
*/
'use strict';
function rgb2hex (r, g, b) {
return "0x"
+ ("0" + parseInt(r, 10).toString(16)).slice(-2)
+ ("0" + parseInt(g, 10).toString(16)).slice(-2)
+ ("0" + parseInt(b, 10).toString(16)).slice(-2);
};
module.exports = rgb2hex;