|
|
@ -214,7 +214,9 @@
|
|
|
|
if (!ranges[typ][typ]) { // no alpha|HEX
|
|
|
|
if (!ranges[typ][typ]) { // no alpha|HEX
|
|
|
|
if (type !== typ && typ !== 'XYZ') {
|
|
|
|
if (type !== typ && typ !== 'XYZ') {
|
|
|
|
from = exceptions[typ] || 'rgb';
|
|
|
|
from = exceptions[typ] || 'rgb';
|
|
|
|
colors[typ] = convert[from + '2' + typ](colors[from]);
|
|
|
|
if (typ !== from) {
|
|
|
|
|
|
|
|
colors[typ] = convert[from + '2' + typ](colors[from]);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!RND[typ]) RND[typ] = {};
|
|
|
|
if (!RND[typ]) RND[typ] = {};
|
|
|
@ -688,4 +690,4 @@
|
|
|
|
// return Math.max(min, Math.min(max, value)); // faster??
|
|
|
|
// return Math.max(min, Math.min(max, value)); // faster??
|
|
|
|
return (value > max ? max : value < min ? min : value);
|
|
|
|
return (value > max ? max : value < min ? min : value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})(window);
|
|
|
|
})(window);
|
|
|
|