mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Color#setAlpha: comment out code using Math.min and Math.max, which was supposed to just be there to explain what is happening.
This commit is contained in:
parent
bda24fbd54
commit
b7902635bf
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ var Color = this.Color = Base.extend(new function() {
|
|||
},
|
||||
|
||||
setAlpha: function(alpha) {
|
||||
this._alpha = Math.min(Math.max(alpha, 0), 1);
|
||||
// this._alpha = Math.min(Math.max(alpha, 0), 1);
|
||||
this._alpha = alpha < 0 ? 0 : alpha > 1 ? 1 : alpha;
|
||||
this._cssString = null;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue