void setup() {
size(600, 600);
smooth();
frameRate(8);
background(255);
}
void draw() {
noStroke();
fill(255, 0, 0);
ellipse(mouseX, mouseY, 10, 10);
fill(120);
ellipse(pmouseX, pmouseY, 10, 10);
stroke(120);
line(mouseX, mouseY, pmouseX, pmouseY);
}
void mousePressed(){
background(255);
}
0 comments:
Post a Comment