xxxxxxxxxx
int i = 0;
void setup() { // this is run once.
// set the background color
background(255);
// canvas size (Integers only, please.)
size(1440, 1080);
// smooth edges
smooth();
// limit the number of frames per second
frameRate(60);
// set the width of the point.
strokeWeight(17);
}
void draw() { // this is run repeatedly.
// set the color to bright black
stroke(0, 0, 0, 255);
// draw the point
point(random(0, width), random(0, height));
// move over a pixel
if (i < width) {
i++;
} else {
i = 0;
}
// set the color to dark black
stroke(0, 0, 0, 139);
// draw the point
point(random(0, width), random(0, height));
// set the color to dark black
stroke(0, 0, 0, 0);
// draw the point
point(random(0, width), random(0, height));
// set the color to bright black
stroke(0, 0, 0, 255);
// draw the point
point(random(0, width), random(0, height));
// set the color to bright grey
stroke(192, 192, 192, 100);
// draw the point
point(random(0, width), random(0, height));
// set the color to white
stroke(255, 255, 255, 255);
// draw the point
point(random(0, width), random(0, height));
}