마우스를 클릭할 때마다 반투명 하늘색 네모가 그려지는 드로잉
/ 작업일 : 2016년 1월 23일
/메모:키보드를 누르면 흰색배경이 나타나서 지워짐
/——————————————————————————–
void setup() {
size(800,600);
background(255);
textSize(20);
fill(173,194,212);
text(“Press the mouse button”, 10, 30);
}
void draw(){
}
void mousePressed(){
noStroke();
fill(173,194,212,150);
rectMode(CENTER);
rect(mouseX,mouseY,100,100);
}
void keyPressed(){
background(255);
}
—————————————————
원본페이지: sketch_160123a_67p.html