technique

Pixel array 1D indexing formula

Processing exposes the screen or an image's pixels as one flat 1D color array; the pixel at (x,y) is found by computing the offset x + y*width.

Also called: x + y*width pixel formula · loadPixels indexing

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper

Connected to

Contrast with: Kernel convolutions · Pixel-sampled point rendering


Revision 1 · 1 source · Something wrong? Tell us.