var mx = 0;
var my = 0;
function setup() {
createCanvas(240, 120);
}
function draw() {
background(204);
ellipse(mx, my, 50, 50);
}
function mouseMoved() {
mx = mouseX;
my = mouseY;
}
[OLD FALL 2017] 15-104 • Introduction to Computing for Creative Practice
Professor Roger B. Dannenberg • Fall 2017 • Introduction to Computing for Creative Practice
var mx = 0;
var my = 0;
function setup() {
createCanvas(240, 120);
}
function draw() {
background(204);
ellipse(mx, my, 50, 50);
}
function mouseMoved() {
mx = mouseX;
my = mouseY;
}