projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cc14f9
)
Simplified the code a bit
author
Alexander Ebert
<ebert@woltlab.com>
Tue, 31 May 2022 09:13:26 +0000
(11:13 +0200)
committer
GitHub
<noreply@github.com>
Tue, 31 May 2022 09:13:26 +0000
(11:13 +0200)
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
ts/WoltLabSuite/Core/ColorUtil.ts
patch
|
blob
|
blame
|
history
diff --git
a/ts/WoltLabSuite/Core/ColorUtil.ts
b/ts/WoltLabSuite/Core/ColorUtil.ts
index d2c7618e748e5f8bed65f564a506a14469f201a8..4398ee183be1f5e61aec2171d072879d0099dd3f 100644
(file)
--- a/
ts/WoltLabSuite/Core/ColorUtil.ts
+++ b/
ts/WoltLabSuite/Core/ColorUtil.ts
@@
-119,8
+119,8
@@
export function rgbToHsl(r: number, g: number, b: number): HSL {
g /= 255;
b /= 255;
- const max = Math.max(
Math.max(r, g)
, b);
- const min = Math.min(
Math.min(r, g)
, b);
+ const max = Math.max(
r, g
, b);
+ const min = Math.min(
r, g
, b);
const diff = max - min;
h = 0;