Skip to main content

pre_multiply_argb

Function pre_multiply_argb 

pub fn pre_multiply_argb(a: u32, r: u32, g: u32, b: u32) -> u32
Expand description

Returns a PMColor value from unpremultiplied 8-bit component values.

  • a amount of alpha, from fully transparent (0) to fully opaque (255)
  • r amount of red, from no red (0) to full red (255)
  • g amount of green, from no green (0) to full green (255)
  • b amount of blue, from no blue (0) to full blue (255)