Skip to main content

flatten

Function flatten 

Source
pub fn flatten(fg: Hsla, bg: Hsla) -> Hsla
Expand description

Composite fg (which may be translucent) over an opaque bg, returning the opaque result — the color the eye actually receives.