pub fn rgb(r: u8, g: u8, b: u8) -> RGBExpand description
Constructs a RGB Color from numerical values, similar to the
rgb function in CSS.
ยงExample
use css_colors::{Color, rgb};
let salmon = rgb(250, 128, 114);
assert_eq!(salmon.to_css(), "rgb(250, 128, 114)");