Created
February 27, 2018 06:04
-
-
Save dirk/967185e69e80588f8a62a33183a7cf06 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
void setup() { | |
size(200, 200); | |
for (var i = 0; i < 10000; i++) { | |
var x = (Math.random() - 0.5) * 150; | |
var y = (Math.random() - 0.5) * 150; | |
if ((Math.sqrt((x * x) + (y * y))) > 75) continue; | |
point(x + 100, y + 100); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment