From 6a623dffce0685f607d9bc31174afa45afd22acf Mon Sep 17 00:00:00 2001 From: ycw Date: Thu, 21 Sep 2023 07:30:49 +0800 Subject: [PATCH] less var access --- src/math/Color.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/math/Color.js b/src/math/Color.js index 1056069d575cd9..5f0bad7d438884 100644 --- a/src/math/Color.js +++ b/src/math/Color.js @@ -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 ); }