Module ALPHA_MODES-PIXI

include { ... };
type t =
| NoPremultipliedAlpha
| PremultiplyOnUpload
| PremultipliedAlpha
;

How to treat textures with premultiplied alpha

include { ... };
let tToJs: t => int;
let tFromJs: int => option(t);
let noPremultipliedAlpha: int;

Source is not premultiplied, leave it like that. Option for compressed and data textures that are created from typed arrays

let premultiplyOnUpload: int;

Source is not premultiplied, premultiply on upload. Default option, used for all loaded images

let premultipliedAlpha: int;

Source is already premultiplied Example: spine atlases with _pma suffix

let npm: int;

Alias for NO_PREMULTIPLIED_ALPHA

let unpack: int;

Default option, alias for PREMULTIPLY_ON_UPLOAD

let pma: int;

Alias for PREMULTIPLIED_ALPHA