mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Small change to Color.
This commit is contained in:
parent
d7399926a0
commit
5079259a8e
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ var Color = this.Color = Base.extend(new function() {
|
|||
Base.each(this._components,
|
||||
function(name, i) {
|
||||
var value = components[i];
|
||||
this['_' + name] = value !== undefined
|
||||
// TODO: should we call the setter?
|
||||
// this['set' + name.capitalize()]
|
||||
this[name] = value !== undefined
|
||||
? value
|
||||
// TODO: is this correct?
|
||||
// Shouldn't alpha be set to -1?
|
||||
|
|
Loading…
Reference in a new issue