Skip to main content

GLChooseProgram

Callable

  • GLChooseProgram(gl: WebGL2RenderingContext, color: string, fullAlpha: boolean, blendingMode: GlobalCompositeOperation): WebGLProgram

  • Chooses right program using input parameters


    Parameters

    • gl: WebGL2RenderingContext

      WebGL context

    • color: string

      Color of the image to draw

    • fullAlpha: boolean

      Whether or not the full alpha should be rendered

    • blendingMode: GlobalCompositeOperation

      blending mode for drawing the image

    Returns WebGLProgram

    • The chosen WebGL program