clearColor method

void clearColor(
  1. GLclampf red,
  2. GLclampf green,
  3. GLclampf blue,
  4. GLclampf alpha,
)

The WebGLRenderingContext.clearColor() method of the WebGL API specifies the color values used when clearing color buffers.

This specifies what color values to use when calling the WebGLRenderingContext.clear method. The values are clamped between 0 and 1.

Implementation

external void clearColor(
  GLclampf red,
  GLclampf green,
  GLclampf blue,
  GLclampf alpha,
);