Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kunishi
Last active October 7, 2015 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunishi/3096487 to your computer and use it in GitHub Desktop.
Save kunishi/3096487 to your computer and use it in GitHub Desktop.
void setup() {
size(480, 120);
smooth();
}
void draw() {
if (mousePressed) {
fill(0);
} else {
fill(255);
}
ellipse(mouseX, mouseY, 80, 80);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment