Function rgb2hex
pub const fn rgb2hex(r: u8, g: u8, b: u8) -> u32 ⓘ
Available on crate feature
dep_fltk
only.Expand description
Convenience function to convert rgb to hex. Example:
use fltk::utils::rgb2hex;
let ret = rgb2hex(0, 255, 0); println!("0x{:06x}", ret);