compositor for 2d glitch effects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

keys_mouse.pde 433B

1234567891011121314151617
  1. void mousePressed()
  2. {
  3. if (mouseButton == LEFT) {
  4. if (sourceManager.dir != null) {
  5. sourceManager.importURI(sourceManager.dir + "/" + sourceManager.selection[(int)random(sourceManager.selection.length)]);
  6. }
  7. }
  8. if (mouseButton == RIGHT) {
  9. snapshot();
  10. }
  11. }
  12. void mouseWheel(MouseEvent event) {
  13. if (event.getCount() < 0) renderSize += 8;
  14. else renderSize -= 8;
  15. renderSize = constrain(renderSize, 8, 15000);
  16. }