mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Remove dependency from full Bootstrap.
This commit is contained in:
parent
93c3920505
commit
1bd0127ece
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ var RGBColor = this.RGBColor = Color.extend(new function() {
|
||||||
if (hex.length >= 4) {
|
if (hex.length >= 4) {
|
||||||
var rgb = [];
|
var rgb = [];
|
||||||
for (var i = 1; i < 4; i++)
|
for (var i = 1; i < 4; i++)
|
||||||
rgb.push((hex[i].length == 1
|
rgb.push(parseInt(hex[i].length == 1
|
||||||
? hex[i] + hex[i] : hex[i]).toInt(16) / 255);
|
? hex[i] + hex[i] : hex[i], 16) / 255);
|
||||||
return rgb;
|
return rgb;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue