Created
December 8, 2017 16:58
-
-
Save garraflavatra/0341ef763f16c271b50dfa703c97cfb2 to your computer and use it in GitHub Desktop.
Ellipse drawing
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(480, 120); | |
} | |
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