Ah, premultiplied alpha! I haven't thought about that in years.<p>For reference, here's the original paper by Porter and Duff: <a href="https://dl.acm.org/doi/10.1145/964965.808606" rel="nofollow">https://dl.acm.org/doi/10.1145/964965.808606</a>