Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

clearColor method

Specifies color values to use by the clear method to clear the color buffer.

IE11

 

Syntax

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

Parameters

The values below must be in the range of 0 - 1. The default value is 0.

red [in]

Type: Number

The red component.

green [in]

Type: Number

The green component.

blue [in]

Type: Number

The blue component.

alpha [in]

Type: Number

The transparency component.

Return value

This method does not return a value.

Remarks

See also

WebGLRenderingContext

 

 

Show:
© 2015 Microsoft