io-devices-lib
io-devices-lib copied to clipboard
Quick Start wrong pixelIndex?
In the Quick Start for Assembly Script there is the following code:
// Set our Red
rgbaFrame[pixelIndex + 0] = 0;
// Set our Blue
rgbaFrame[pixelIndex + 0] = 0;
// Set our Green
rgbaFrame[pixelIndex + 0] = 255;
// Set our Alpha
rgbaFrame[pixelIndex + 0] = 255;
Shouldn't there be rgbaFrame[pixelIndex + n]
where n ∈ {0, 1, 2, 3}
?