Function fast_qr::convert::rgba2hex

source ·
pub fn rgba2hex(color: [u8; 4]) -> String
Expand description

Converts an array of pixel color to it’s hexadecimal representation

§Example

let color = [0, 0, 0, 255];
assert_eq!(&rgba2hex(color), "#000000");