Learn about arrays()
Read about the functions loadPixels() and updatePixels() in the Processing reference guide (in the Help menu in Processing)
Here’s a program I wrote:
size(255,255);
background(0,255,00);
loadPixels();
for (int column = 0; column < width; column++)
{
for (int row = 0; row < height; row++)
{
pixels[row*width+column] = color(255,row,column);
}
}
updatePixels();
Change the colors the program draws
Change the program to make this pattern (hint: use an if statement)
Change the program to make this pattern