Merge pull request #29 from Derpy-Leggies/unstable

Unstable
This commit is contained in:
Michał Gdula 2023-09-27 14:00:31 +01:00 committed by GitHub
commit fd08fbd0c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 1408 additions and 1226 deletions

View file

@ -58,7 +58,7 @@ class Colour:
s = 0.0
else:
d = high - low
s = d / (2 - high - low) if l > 0.5 else d / (high + low)
s = d / (2 - high - low) if low > 0.5 else d / (high + low)
h = {
r: (g - b) / d + (6 if g < b else 0),
g: (b - r) / d + 2,