/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
void draw() { stroke(255); if(mousePressed) { if (mouseEvent.getClickCount()==2) { background(0,0,random(0,255)); println("<double click>"); } if (mouseEvent.getButton()==MouseEvent.BUTTON3) { background(0,random(0,255),0); println("<right button>"); } } }
Comments
