Browse Source

less var access (#26817)

ycw 1 year ago
parent
commit
309e5f6f64
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/math/Color.js

+ 1 - 5
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 );
 
 	}