Function hex_to_irgb

Source
pub fn hex_to_irgb<const N: usize>(hex: &str) -> Result<[u8; N], String>
Expand description

Create integer RGB set from hex string. Will default to 255 for alpha if 4 channels requested but hex length is 6. Use hex_to_irgb_default to customize this.