Skip to content

Commit

Permalink
less var access (mrdoob#26817)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw authored Sep 21, 2023
1 parent c1bf227 commit 309e5f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/math/Color.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,7 @@ class Color {

this.getHSL( _hslA );

_hslA.h += h; _hslA.s += s; _hslA.l += l;

this.setHSL( _hslA.h, _hslA.s, _hslA.l );

return this;
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );

}

Expand Down

0 comments on commit 309e5f6

Please sign in to comment.