Language \ Environment \ Libraries \ Comparison  
   
Back  
   
  If you see any errors or have any comments, let us know.  
Class   Gainer
   
Name  

analogInput[]

   
Examples  
// exsample analog input
import processing.gainer.*;

Gainer gainer;
PFont myFont;

void setup() {
  size(300, 255);
  myFont = loadFont("CourierNewPSMT-24.vlw");
  textFont(myFont, 24);

  gainer = new Gainer(this); 
}

void draw() { 
  background(0);
 
  text("analogInput[0]: " +gainer.analogInput[0],10,80); 
  text("analogInput[1]: " +gainer.analogInput[1],10,110);
  text("analogInput[2]: " +gainer.analogInput[2],10,140);
  text("analogInput[3]: " +gainer.analogInput[3],10,170);

}
  
void mousePressed()
{
  gainer.peekAnalogInput();
}
  



Description   several values are brought into each arrays.
   
Usage   Application
   
Related   peekAnalogInput()  
 






   
 
Updated:??
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info