1
Fork 0
mirror of https://github.com/RGBCube/CSAssignments synced 2025-07-27 05:57:44 +00:00

Start making the interactive runner & use punctuation and stuff

This commit is contained in:
RGBCube 2022-11-05 21:51:51 +03:00
parent 58f5c52db5
commit 9a63e4127d
4 changed files with 80 additions and 25 deletions

View file

@ -21,7 +21,7 @@ def __rgb_from_int(i: int, /) -> tuple[int, int, int]:
def chalk_from_int(foreground: int, background: int = None, /) -> Chalk:
return Chalk(
foreground=TrueColor(*__rgb_from_int(foreground)),
background=TrueColor(*__rgb_from_int(background))
background=TrueColor(*__rgb_from_int(background)) if background else None
)