gleamy_lights
Functions
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.