Crate coloured_strings

source ·

Functions

  • This function takes the &str, then calls the “colourise” function to convert it into a coloured string.
  • This function takes a &str, which acts as the text; a boolean value to determine if the colour should be applied to the foreground or background; and red, blue and green values to determine colour.