pub fn custom_colour(
text: &str,
foreground: bool,
red: u8,
green: u8,
blue: u8,
) -> StringExpand description
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.
Examples
custom_colour("foreground", true, 200, 240, 100);
custom_colour("background", false, 200, 100, 200);