public class sketch_editor4 extends PApplet {
public void setup() {
size(200, 200);
}
public void draw() {
if(mouseX < 70) {
cursor(CROSS);
} else {
cursor(HAND);
}
}
public void mousePressed(){
background(190);
ellipse(mouseX, mouseY, mouseX, mouseY);
fill(255);
}
static public void main(String args[]) {
PApplet.main(new String[] { "--bgcolor=#F0F0F0", "sketch_editor4" });
}
}
No hay comentarios:
Publicar un comentario