Function reveal

Source
pub fn reveal(str: &str, time_between: f64)
Expand description

Reveals a string gradually, printing one character at a time with a specified time interval.

This function is useful for creating a typing effect or slowly displaying information to the user.

ยงArguments

  • str - The string to reveal gradually. Add here \n for a new line.
  • time_between - The time interval (in seconds) between each revealed character.