Created
August 10, 2017 01:20
-
-
Save yoggy/6e613b0225fa1155633c3a22ba5353ea 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(600, 480); | |
} | |
void draw() { | |
float x = random(0, width); | |
float y = random(0, height); | |
float l = random(0, width / 5); | |
float r = random(0, 255); | |
float g = random(0, 255); | |
float b = random(0, 255); | |
fill(r, g, b); | |
ellipse(x, y, l, l); | |
textSize(16); | |
fill(#000000); | |
rect(0, 0, 160, 30); | |
fill(#ffffff); | |
text("fps=" + frameRate, 10, 20); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment