Skip to main content

GLDraw2DCanvas

Callable

  • GLDraw2DCanvas(gl, Img, X, Y, blinkOffset, alphaMasks, texMasks): void

  • Draws a canvas on the WebGL canvas


    Parameters

    • gl: WebGL2RenderingContext

      WebGL context

    • Img: HTMLImageElement | HTMLCanvasElement

      Canvas to get the data of

    • X: number

      Position of the image on the X axis

    • Y: number

      Position of the image on the Y axis

    • blinkOffset: number

      Offset for the blink canvas

    • alphaMasks: readonly RectTuple[]

      A list of alpha masks to apply to the asset

    • texMasks: readonly TextureAlphaMask[]

      A list of mask layers to apply to the asset

    Returns void