mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Directly access inner property.
This commit is contained in:
parent
7dbda50431
commit
3a310f19cc
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ var Color = this.Color = Base.extend(new function() {
|
|||
},
|
||||
|
||||
'gray-rgb': function(color) {
|
||||
var comp = 1 - color.getGray();
|
||||
var comp = 1 - color._gray;
|
||||
return new RGBColor(comp, comp, comp, color._alpha);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue