mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 10:21:54 +02:00
Add dictionary to documentation.
This commit is contained in:
parent
96092fe43f
commit
916eb3d8fa
6 changed files with 23 additions and 8 deletions
|
@ -13,7 +13,7 @@ __email__ = "me@enzet.ru"
|
|||
|
||||
def is_bright(color: Color) -> bool:
|
||||
"""
|
||||
Check whether color bright enough to have black outline instead of white.
|
||||
Check whether color is bright enough to have black outline instead of white.
|
||||
"""
|
||||
return (
|
||||
0.2126 * color.red + 0.7152 * color.green + 0.0722 * color.blue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue