void setup() { size(350,350); // set the size of the canvas noLoop(); // we do not need animations } void draw() { for(int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { stroke(random(255)); // set the color of the pen to a random grayscale between 0 and 255 point(i,j); // draw a point on screen } } }