mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Merge pull request #28 from Derpy-Leggies/deepsource-autofix-d3b417dc
refactor: refactor `if` expression
This commit is contained in:
commit
0b640bf93c
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Colour:
|
||||||
]
|
]
|
||||||
lightness = (0.2126 * cont[0]) + (0.7152 * cont[1]) + (0.0722 * cont[2])
|
lightness = (0.2126 * cont[0]) + (0.7152 * cont[1]) + (0.0722 * cont[2])
|
||||||
|
|
||||||
return True if lightness > threshold else False
|
return lightness > threshold
|
||||||
|
|
||||||
def to_hsv(self):
|
def to_hsv(self):
|
||||||
r, g, b = self.rgb
|
r, g, b = self.rgb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue