reference for 8 bit
This commit is contained in:
parent
8e956c9302
commit
7fd85c6b8e
@ -11,18 +11,16 @@ def colors4():
|
||||
print
|
||||
|
||||
def colors8():
|
||||
print("8 bit colors")
|
||||
print("8 bit colors (\\033[48;5;<color>m{})")
|
||||
seq_template = "\033[{};{};{}m{}"
|
||||
for color in range(16, 255):
|
||||
if color < 100:
|
||||
seq_template = "\033[{};{};{}m {} "
|
||||
else:
|
||||
seq_template = "\033[{};{};{}m {} "
|
||||
# colorstring = "".join(seq_template.format(48, 5, i, i) for i in range(color, color + 36 ))
|
||||
print(seq_template.format(48, 5, color, color), end='')
|
||||
if color % 36 == 15:
|
||||
print()
|
||||
#print(seq_template.format(48, 5, color) + bar + default)
|
||||
print()
|
||||
def main():
|
||||
colors4()
|
||||
|
Loading…
Reference in New Issue
Block a user