Function glClearColor

  • glClearColor specifies the red, green, blue, and alpha values used by glClear to clear the color buffers. Values specified by glClearColor are clamped to the range [0,1].

    Parameters

    • red: number

      Specifies the red value used when the color buffers are cleared. The initial value is 0.

    • green: number

      Specifies the green value used when the color buffers are cleared. The initial value is 0.

    • blue: number

      Specifies the blue value used when the color buffers are cleared. The initial value is 0.

    • alpha: number

      Specifies the alpha value used when the color buffers are cleared. The initial value is 0.

    Returns void

    Summary

    specify clear values for the color buffers

    See

    glClearColor

Generated using TypeDoc