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