Created
September 13, 2019 18:04
-
-
Save keywordnew/1a19b357fe4795142b65c222d1140da5 to your computer and use it in GitHub Desktop.
p5 experiment
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
function setup() { | |
createCanvas(640, 480); | |
} | |
function draw() { | |
if (mouseIsPressed) { | |
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