Skip to content

Function: premultiplyStraightRGBA() ​

ts
function premultiplyStraightRGBA(color): StraightRGBA;

Defined in: utils/rgbaCompositing.ts:143

Convert straight-alpha RGBA to the premultiplied representation in a framebuffer.

Parameters ​

color ​

StraightRGBA

Returns ​

StraightRGBA

Released under the MIT License.