MiniDevil As beautiful as a shell
welcome_effects.c File Reference

Welcome effects. More...

#include "welcome_ui.h"
+ Include dependency graph for welcome_effects.c:

Detailed Description

Welcome effects.

Definition in file welcome_effects.c.

Functions

static void print_mystic_char (char c, int idx)
 Print a single title character in mystic fire color. More...
 
void animate_title (t_welcome_term *t)
 Animate the title appearing character by character. More...
 
static void print_quote_lines (t_welcome_term *t, int row)
 Print the quote and its box borders. More...
 
void animate_quote (t_welcome_term *t)
 Draw the quote inside a decorative box. More...
 

Function Documentation

◆ print_mystic_char()

static void print_mystic_char ( char  c,
int  idx 
)
static

Print a single title character in mystic fire color.

Parameters
cCharacter to print
idxPosition index (used to select the color)

Definition at line 21 of file welcome_effects.c.

References BOLD, C_M1, C_M2, C_M3, C_M4, and C_M5.

Referenced by animate_title().

+ Here is the caller graph for this function:

◆ animate_title()

void animate_title ( t_welcome_term t)

Animate the title appearing character by character.

Parameters
tTerminal dimensions

Definition at line 33 of file welcome_effects.c.

References C_AURA3, C_AURA5, t_welcome_term::center_y, ft_msleep(), print_at_pos(), print_mystic_char(), RESET, and t_welcome_term::width.

Referenced by draw_welcome().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_quote_lines()

static void print_quote_lines ( t_welcome_term t,
int  row 
)
static

Print the quote and its box borders.

Parameters
tTerminal dimensions
rowTop row of the quote box interior

Definition at line 62 of file welcome_effects.c.

References BOLD, C_AURA3, C_M4, C_M5, DIM, ft_msleep(), print_at_pos(), print_centered(), RESET, and t_welcome_term::width.

Referenced by animate_quote().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ animate_quote()

void animate_quote ( t_welcome_term t)

Draw the quote inside a decorative box.

Parameters
tTerminal dimensions (to center the box)

Definition at line 92 of file welcome_effects.c.

References C_AURA3, t_welcome_term::center_y, ft_msleep(), print_centered(), print_quote_lines(), and RESET.

Referenced by draw_welcome().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Go to the source code of this file.