1
使用虹膜顏色選擇器,是否可以獲取rgb格式的選定顏色?目前我總是將選定的顏色作爲十六進制代碼。虹膜顏色選擇器:將選定的顏色設置爲RGB值
http://automattic.github.io/Iris/
<input class"col-picker"/>
....
$('.col-picker').iris({
mode: 'rgb', // doesn't return colour in rgb
change: function(evt, ui) {
console.log('colour as rgb', ui.color.toString());
// Above always outputs hex values not rgb
}
});