mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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();
|
||||
var vector = hilite.subtract(this._origin);
|
||||
if (vector.getLength() > this._radius) {
|
||||
this._hilite = this._origin.add(vector.normalize(
|
||||
this._radius - 0.1));
|
||||
this._hilite = this._origin.add(
|
||||
vector.normalize(this._radius - 0.1));
|
||||
} else {
|
||||
this._hilite = hilite;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue