[−][src]Function piet::util::unpremul
pub fn unpremul(x: u8, a: u8) -> u8
If x
is a single (non-alpha) channel of a premultiplied color and a
is the alpha channel,
returns the corresponding channel of the unpremultiplied version of the color.