Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

colorMask method

Lets you set whether individual colors can be written when drawing or rendering to a framebuffer.




WebGLRenderingContext.colorMask(red, green, blue, alpha);


The default value is true, all colors can be written to the framebuffer. false on any parameter disables that color from being written.

red [in]

Type: boolean

green [in]

Type: boolean

blue [in]

Type: boolean

alpha [in]

Type: boolean

Return value

This method does not return a value.

See also




© 2015 Microsoft