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: