black formatted
This commit is contained in:
parent
557d9e1b8d
commit
373ed50276
@ -3,7 +3,7 @@
|
|||||||
# A script to convert RGB to ansi escape codes
|
# A script to convert RGB to ansi escape codes
|
||||||
|
|
||||||
|
|
||||||
while (True):
|
while True:
|
||||||
colour = input("R G B (empty to exit): ")
|
colour = input("R G B (empty to exit): ")
|
||||||
|
|
||||||
if colour == "":
|
if colour == "":
|
||||||
@ -19,10 +19,11 @@ while (True):
|
|||||||
print(f"\nColour: \\x1b[38;2;{r};{g};{b}m")
|
print(f"\nColour: \\x1b[38;2;{r};{g};{b}m")
|
||||||
print(f"Background: \\u001b[48;2;{r};{g};{b}m\n")
|
print(f"Background: \\u001b[48;2;{r};{g};{b}m\n")
|
||||||
|
|
||||||
print(f'''
|
print(
|
||||||
|
f"""
|
||||||
{bold}{ansi_letter}ABCDE {ansi_box}ABCDE{end_c}
|
{bold}{ansi_letter}ABCDE {ansi_box}ABCDE{end_c}
|
||||||
{bold}{ansi_letter}FGHIJ {ansi_box}FGHIJ{end_c}
|
{bold}{ansi_letter}FGHIJ {ansi_box}FGHIJ{end_c}
|
||||||
{bold}{ansi_letter}KLMNO {ansi_box}KLMNO{end_c}
|
{bold}{ansi_letter}KLMNO {ansi_box}KLMNO{end_c}
|
||||||
|
|
||||||
''')
|
"""
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user