For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class RGBAImage

An object to store image data not premultiplied, because ImageData is not premultiplied. Premultiplication is applied in JS before uploading to a texture.

Index

Constructors

Properties

Methods

Constructors

Properties

data: Uint8Array

data must be a Uint8Array instead of Uint8ClampedArray because texImage2D does not support Uint8ClampedArray in all browsers.

height: number
width: number

Methods

  • Parameters

    Returns void

  • Parameters

    • row: number
    • col: number
    • value: Color

    Returns void

Was this helpful?