Created
January 23, 2017 05:04
-
-
Save jtescher/4d8f8b6fc0f63fd5ab2bf312b46274e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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