...
This commit is contained in:
parent
d55d8ac091
commit
8187ec2cef
2
kitty/rgb.py
generated
2
kitty/rgb.py
generated
@ -75,7 +75,7 @@ def color_from_int(x: int) -> Color:
|
|||||||
|
|
||||||
|
|
||||||
def color_as_int(x: Color) -> int:
|
def color_as_int(x: Color) -> int:
|
||||||
return x.red << 16 | x.green << 8 | x.blue
|
return int(x)
|
||||||
|
|
||||||
|
|
||||||
def color_as_sharp(x: Color) -> str:
|
def color_as_sharp(x: Color) -> str:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user