/* The title of this example can be misleading; we're actually creating a Uniform 2D randomization. This will display circles on the screen with their X and Y coordinates determined by a Uniform Random Number Generator. */ void setup() { // setup the environment size(500, 500); background(10); colorMode(RGB, 255, 255, 255, 100); smooth(); } void draw() { // fade the screen fill(10, 10, 10, 1); rect(0, 0, width, height); // set the drawing style fill(32, 64, 128, 100); // create 50 circles, with a random X and Y position. for (int i = 0; i < 50; i++) { ellipse(random(width), random(height), 20, 20); } }