function rgb2Hex(r,g,b) {
var value = (1 << 24) + r * (1 << 16) + g * (1 << 8) + b;
value = value.toString(16);
return '#' + value.slice(1);
}
function rgb2Hex(r,g,b) {
var value = (1 << 24) + r * (1 << 16) + g * (1 << 8) + b;
value = value.toString(16);
return '#' + value.slice(1);
}
本文标题:rbg转十六进制
本文链接:https://www.haomeiwen.com/subject/bmvoehtx.html
网友评论