Enumeration ALPHA_MODES

How to treat textures with premultiplied alpha

PIXI

Enumeration Members

NO_PREMULTIPLIED_ALPHA: 0

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

0
NPM: 0

Alias for NO_PREMULTIPLIED_ALPHA.

0
PMA: 2

Alias for PREMULTIPLIED_ALPHA.

2
PREMULTIPLIED_ALPHA: 2

Source is already premultiplied. Example: spine atlases with _pma suffix.

2
PREMULTIPLY_ON_UPLOAD: 1

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

1
UNPACK: 1

Default option, alias for PREMULTIPLY_ON_UPLOAD.

1