topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p332-p332.pde / pde



  import processing.serial.*;
  Serial port;
  void setup(){
    size(400,100);
    port = new Serial(this, “COM6”, 9600);
  }
  void draw(){
    background(255);
    line(mouseX,0,mouseX,100);
    int tone = mouseX/50;
    port.write(tone);
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.