mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-09 06:12:34 -05:00
Clean up code.
This commit is contained in:
parent
1c886c125c
commit
9be8c154b7
1 changed files with 2 additions and 2 deletions
|
@ -98,8 +98,8 @@ var GradientColor = this.GradientColor = Color.extend({
|
||||||
hilite = Point.read(arguments).clone();
|
hilite = Point.read(arguments).clone();
|
||||||
var vector = hilite.subtract(this._origin);
|
var vector = hilite.subtract(this._origin);
|
||||||
if (vector.getLength() > this._radius) {
|
if (vector.getLength() > this._radius) {
|
||||||
this._hilite = this._origin.add(vector.normalize(
|
this._hilite = this._origin.add(
|
||||||
this._radius - 0.1));
|
vector.normalize(this._radius - 0.1));
|
||||||
} else {
|
} else {
|
||||||
this._hilite = hilite;
|
this._hilite = hilite;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue