mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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) {
|
initialize: function(gradient, origin, destination, hilite) {
|
||||||
this.gradient = gradient || new Gradient();
|
this.gradient = gradient || new Gradient();
|
||||||
this.origin = new Point(origin);
|
this.origin = origin;
|
||||||
this.destination = new Point(destination);
|
this.destination = destination;
|
||||||
if(hilite)
|
if(hilite)
|
||||||
this.hilite = new Point(hilite);
|
this.hilite = hilite;
|
||||||
},
|
},
|
||||||
|
|
||||||
getOrigin: function() {
|
getOrigin: function() {
|
||||||
|
|
Loading…
Reference in a new issue