q5play
    Preparing search index...

    Variable pixels

    pixels: number[]

    🌆 Array of pixel color data from a canvas or image.

    Empty by default, get the data by running loadPixels.

    Each pixel is represented by four consecutive values in the array, corresponding to its red, green, blue, and alpha channels.

    The top left pixel's data is at the beginning of the array and the bottom right pixel's data is at the end, going from left to right and top to bottom.