forked from CaioNaLarica/song-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathceu_azul.py
More file actions
50 lines (37 loc) · 1.22 KB
/
ceu_azul.py
File metadata and controls
50 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import time
import os
from rich.console import Console
from rich.live import Live
console = Console()
def clear():
os.system("cls" if os.name == "nt" else "clear")
clear()
def write(text, speed, cor="white"):
linha = ""
with Live("", console=console, refresh_per_second=20, transient=True) as live:
for letra in text:
linha += letra
live.update(f"[{cor}]{linha}[/]")
time.sleep(speed)
console.print(f"[bold {cor}]{text}[/]")
time.sleep(0.6)
def sing():
clear()
write("A gente nunca sabe quem são essas pessoas", 0.07)
time.sleep(2)
write("Eu só queria te lembrar", 0.11)
console.print()
time.sleep(2.7)
write("Que aquele tempo, eu não podia fazer mais por nós", 0.08, "blue" )
write("Eu estava errado e você não tem que me perdoar", 0.06)
time.sleep(1.9)
write("Mas também quero te mostrar", 0.07)
console.print()
time.sleep(3.4)
write("Que existe um lado bom nessa história", 0.1, "blue")
write("Tudo o que ainda temos a compartilhar", 0.1)
console.print()
write("E viver, e cantar", 0.14, "blue")
time.sleep(2)
clear()
sing()