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:
parent
58f5c52db5
commit
9a63e4127d
4 changed files with 80 additions and 25 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue