[O] Add every flag to display
This commit is contained in:
parent
bf5276bcc4
commit
a437957702
1 changed files with 4 additions and 4 deletions
|
@ -34,12 +34,12 @@ def start_animation():
|
||||||
text_start_x = w // 2 - text_width // 2
|
text_start_x = w // 2 - text_width // 2
|
||||||
text_end_x = text_start_x + text_width
|
text_end_x = text_start_x + text_width
|
||||||
|
|
||||||
for i in range(blocks):
|
# Add everything in PRESETS to colors
|
||||||
colors += PRESETS['rainbow'].colors
|
colors = [c for preset in PRESETS.values() for c in preset.colors]
|
||||||
colors += PRESETS['transgender'].colors
|
|
||||||
|
|
||||||
black = RGB(0, 0, 0)
|
black = RGB(0, 0, 0)
|
||||||
white = RGB(255, 255, 255)
|
white = RGB(255, 255, 255)
|
||||||
|
gold = RGB.from_hex("#FFE09B")
|
||||||
|
|
||||||
def draw_frame():
|
def draw_frame():
|
||||||
buf = ""
|
buf = ""
|
||||||
|
@ -48,7 +48,7 @@ def start_animation():
|
||||||
for y in range(h):
|
for y in range(h):
|
||||||
# Print the starting color
|
# Print the starting color
|
||||||
buf += colors[((frame + y) // block_width) % len(colors)].to_ansi_rgb(foreground=False)
|
buf += colors[((frame + y) // block_width) % len(colors)].to_ansi_rgb(foreground=False)
|
||||||
buf += white.to_ansi_rgb(foreground=True)
|
buf += gold.to_ansi_rgb(foreground=True)
|
||||||
|
|
||||||
# Loop over the width
|
# Loop over the width
|
||||||
x = 0
|
x = 0
|
||||||
|
|
Loading…
Reference in a new issue