PixelFormat

PixelFormat

The format of a pixel, i.e., the number of components it has and what they represent.

Members

staticconstantPixelFormat.ALPHA :Number

0x1906. A pixel format containing an alpha channel.

staticconstantPixelFormat.DEPTH_COMPONENT :Number

0x1902. A pixel format containing a depth value.

staticconstantPixelFormat.DEPTH_STENCIL :Number

0x84F9. A pixel format containing a depth and stencil value, most often used with PixelDatatype.UNSIGNED_INT_24_8_WEBGL.

staticconstantPixelFormat.LUMINANCE :Number

0x1909. A pixel format containing a luminance (intensity) channel.

staticconstantPixelFormat.LUMINANCE_ALPHA :Number

0x190A. A pixel format containing luminance (intensity) and alpha channels.
Default Value: 0x190A

staticconstantPixelFormat.RGB :Number

0x1907. A pixel format containing red, green, and blue channels.

staticconstantPixelFormat.RGBA :Number

0x1908. A pixel format containing red, green, blue, and alpha channels.