Convert RGB to RGBA over white
Take the lowest color component, and convert that to an alpha value. Then scale the color components by subtracting the lowest, and dividing by the alpha value. Example: 152 converts to an alpha value of (255 – 152) / 255 ~ 0.404 152 scales using (152 – 152) / 0.404 = 0 177 scales using … Read more