Skip to main content

pick_opaque_first

Function pick_opaque_first 

Source
pub fn pick_opaque_first(colors: &[[f32; 4]]) -> Option<[f32; 4]>
Expand description

Pick the first opaque colour (alpha ≥ threshold), else the first colour.