1234567891011121314151617 |
- void mousePressed()
- {
- if (mouseButton == LEFT) {
- if (sourceManager.dir != null) {
- sourceManager.importURI(sourceManager.dir + "/" + sourceManager.selection[(int)random(sourceManager.selection.length)]);
- }
- }
- if (mouseButton == RIGHT) {
- snapshot();
- }
- }
- void mouseWheel(MouseEvent event) {
-
- if (event.getCount() < 0) renderSize += 8;
- else renderSize -= 8;
- renderSize = constrain(renderSize, 8, 15000);
- }
|