23 static const char *demon_art[] = {
25 " ___,---.__ /'|`\\ __,---,___",
26 " ,-' \\` `-.____,-' | `-.____,-' // `-.",
27 " ,' | ~'\\ /`~ | `.",
28 " / ___// `. ,' , , \\___ \\",
29 "| ,-' `-.__ _ | , __,-' `-. |",
30 "| / /\\_ ` . | , _/\\ \\ |",
31 "\\ | \\ \\`-.___ \\ | / ___,-'/ / | /",
32 " \\ \\ | `._ `\\\\ | //' _,' | / /",
33 " `-.\\ /' _ `---'' , . ``---' _ `\\ /,-'",
34 " `` / \\ ,='/ \\`=. / \\ ''",
35 " |__ /|\\_,--.,-.--,--._/|\\ __|",
36 " / `./ \\\\`\\ | | | /,//' \\,' \\",
37 " / / ||--+--|--+-/-| \\ \\",
38 " | | /'\\_\\_\\ | /_/_/`\\ | |",
39 " `-._,-' `-._______,-' `-._,-'"
44 return (demon_art[line]);
91 ft_printf(
"%s%s", art_line,
RESET);
Extended terminal info (for welcome screen pos)
int center_y
Vertical center row.
void flash_demon_eyes(t_welcome_term *t)
Animate the demon's eyes blinking.
static const char * get_demon_color(int line)
Map a Demon art row to its gradient color string.
static void print_demon_line(t_welcome_term *t, int line, int row)
Print 1 demon art line at the correct terminal position, with color.
const char * get_demon_art_line(int line)
Return 1 line of the ASCII Demon art by index.
void animate_demon(t_welcome_term *t)
Animate the Demon art with 100ms delay.
Welcome screen structures & prototypes.
void ft_msleep(int ms)
Sleep for approximately ms millisecondes using a little trick.
void print_at_pos(int row, int col, const char *str)
Move the terminal cursor to [row, col] and print str.