Module color.composite

Alpha compositing for premultiplied linear-light sRGB.

Convert straight colors with premultiply before compositing. Keeping encoded sRGB and straight-alpha values out of this API prevents accidental compositing in the wrong representation.

Functions

NameDescription
sourceOver(source, destination) Places a premultiplied linear-light source over a destination.