mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Result of getAlpha() is always defined.
This commit is contained in:
parent
f268c6e152
commit
f1abdccf85
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ var Color = this.Color = Base.extend(new function() {
|
|||
Math.round(color._green * 255),
|
||||
Math.round(color._blue * 255)
|
||||
];
|
||||
if (alpha != null && alpha < 1)
|
||||
if (alpha < 1)
|
||||
components.push(alpha);
|
||||
this._css = (components.length == 4 ? 'rgba(' : 'rgb(')
|
||||
+ components.join(', ') + ')';
|
||||
|
|
Loading…
Reference in a new issue