Skip to content
Snippets Groups Projects
Commit f3d7d710 authored by genofire's avatar genofire
Browse files

[DOC] color.py: fix example change_lightness

parent 5cc565f5
No related branches found
No related tags found
No related merge requests found
...@@ -348,9 +348,9 @@ class Color(_ColorTuple): ...@@ -348,9 +348,9 @@ class Color(_ColorTuple):
c = Color.from_hex(0xff0000) c = Color.from_hex(0xff0000)
print(c) print(c)
# #ff0000 # #ff0000
c.change_value(-0.25) c.change_lightness(0.2)
print(c) print(c)
# #800000 # #ff6666
""" """
return self.__change_vlx(change, self.to_hsl, self.from_hsl) return self.__change_vlx(change, self.to_hsl, self.from_hsl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment