//Shipra Gupta //Processing, Input2 //Use the number keys on keyboard to modify line movement int x = 0; void setup(){ size(100, 100); background(0); frameRate(12); } void draw(){ if(keyPressed == true){ background(0); stroke(255); line(x, 10, x, 90); x += key/8; println(key); } if(x > width){ x = 0; } }