Initial commit with code
This commit is contained in:
6
modules/utils.py
Normal file
6
modules/utils.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def hex_to_int(hex_color: str) -> int:
|
||||
return int(hex_color.lstrip("#"), 16)
|
||||
|
||||
|
||||
def int_to_hex(integer_color: int) -> str:
|
||||
return "#" + format(integer_color, "06x")
|
Reference in New Issue
Block a user