mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Setters already handle point conversion.
This commit is contained in:
parent
10623ddb62
commit
c0a93a8b66
1 changed files with 3 additions and 3 deletions
|
@ -3,10 +3,10 @@ GradientColor = Color.extend({
|
|||
|
||||
initialize: function(gradient, origin, destination, hilite) {
|
||||
this.gradient = gradient || new Gradient();
|
||||
this.origin = new Point(origin);
|
||||
this.destination = new Point(destination);
|
||||
this.origin = origin;
|
||||
this.destination = destination;
|
||||
if(hilite)
|
||||
this.hilite = new Point(hilite);
|
||||
this.hilite = hilite;
|
||||
},
|
||||
|
||||
getOrigin: function() {
|
||||
|
|
Loading…
Reference in a new issue