Skip to content

Instantly share code, notes, and snippets.

@yoggy
Created August 10, 2017 01:20
Show Gist options
  • Save yoggy/6e613b0225fa1155633c3a22ba5353ea to your computer and use it in GitHub Desktop.
Save yoggy/6e613b0225fa1155633c3a22ba5353ea to your computer and use it in GitHub Desktop.
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