gleamy_lights

Functions

pub fn bg_black(msg: String) -> String
pub fn bg_blue(msg: String) -> String
pub fn bg_bright_black(msg: String) -> String
pub fn bg_bright_cyan(msg: String) -> String
pub fn bg_bright_orange(msg: String) -> String
pub fn bg_bright_red(msg: String) -> String
pub fn bg_bright_white(msg: String) -> String
pub fn bg_bright_yellow(msg: String) -> String
pub fn bg_cyan(msg: String) -> String
pub fn bg_error_red(msg: String) -> String
pub fn bg_green(msg: String) -> String
pub fn bg_lightblue(msg: String) -> String
pub fn bg_lilac(msg: String) -> String
pub fn bg_lime(msg: String) -> String
pub fn bg_magenta(msg: String) -> String
pub fn bg_ok_green(msg: String) -> String
pub fn bg_orange(msg: String) -> String
pub fn bg_pink(msg: String) -> String
pub fn bg_purple(msg: String) -> String
pub fn bg_red(msg: String) -> String
pub fn bg_white(msg: String) -> String
pub fn bg_yellow(msg: String) -> String
pub fn black(msg: String) -> String
pub fn blue(msg: String) -> String
pub fn bright_black(msg: String) -> String
pub fn bright_cyan(msg: String) -> String
pub fn bright_orange(msg: String) -> String
pub fn bright_red(msg: String) -> String
pub fn bright_white(msg: String) -> String
pub fn bright_yellow(msg: String) -> String
pub fn by_hexcolor(msg: String, hexcolor: String) -> String

By Hexcolor

Given a message and a hex color, return the message with the color applied.

Will return black if the hex color is invalid.

pub fn by_hexcolor_bg(msg: String, hexcolor: String) -> String

By Hexcolor - Background

Given a message and a hex color, return the message with the background color applied. Will return black if the hex color is invalid.

pub fn by_rgb(msg: String, r: Int, g: Int, b: Int) -> String

By RGB

Given a message and an RGB color, return the message with the color applied. The RGB values should be between 0 and 255.

pub fn by_rgb_bg(msg: String, r: Int, g: Int, b: Int) -> String

By RGB - Background

Given a message and an RGB color, return the message with the background color applied. The RGB values should be between 0 and 255.

pub fn cyan(msg: String) -> String
pub fn error_red(msg: String) -> String
pub fn green(msg: String) -> String
pub fn lightblue(msg: String) -> String
pub fn lilac(msg: String) -> String
pub fn lime(msg: String) -> String
pub fn magenta(msg: String) -> String
pub fn ok_green(msg: String) -> String
pub fn orange(msg: String) -> String
pub fn pink(msg: String) -> String
pub fn purple(msg: String) -> String
pub fn red(msg: String) -> String
pub fn white(msg: String) -> String
pub fn yellow(msg: String) -> String
Search Document