Skip to content

Instantly share code, notes, and snippets.

@jtescher
Created January 23, 2017 05:04
Show Gist options
  • Save jtescher/4d8f8b6fc0f63fd5ab2bf312b46274e3 to your computer and use it in GitHub Desktop.
Save jtescher/4d8f8b6fc0f63fd5ab2bf312b46274e3 to your computer and use it in GitHub Desktop.
import java.util.Random;
Random generator;
void setup() {
size(1120,1200);
generator = new Random();
background(50);
}
void draw() {
float numX = (float) generator.nextGaussian();
float numY = (float) generator.nextGaussian();
float sd = 70;
float mean = 320;
float x = sd * numX + mean;
float y = sd * numY + mean;
noStroke();
fill(250, 10);
ellipse(x, y, 900, 900);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment