mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Replace getter calls with direct access of internal properties.
This commit is contained in:
parent
a035f645fc
commit
ef4e80ecef
1 changed files with 3 additions and 3 deletions
|
@ -336,9 +336,9 @@ var Color = this.Color = Base.extend(new function() {
|
|||
var color = this.convert('rgb'),
|
||||
alpha = color.getAlpha(),
|
||||
components = [
|
||||
Math.round(color.getRed() * 255),
|
||||
Math.round(color.getGreen() * 255),
|
||||
Math.round(color.getBlue() * 255),
|
||||
Math.round(color._red * 255),
|
||||
Math.round(color._green * 255),
|
||||
Math.round(color._blue * 255),
|
||||
alpha != null ? alpha : 1
|
||||
];
|
||||
this._cssString = 'rgba(' + components.join(', ') + ')';
|
||||
|
|
Loading…
Reference in a new issue