//Shipra Gupta //Processing, Input2 //use arrow keys to change the position of a shape //within the display window int x = 0; int y = 0; void setup(){ size(200, 200); frameRate(20); fill(255, 100); } void draw(){ //background(76, 13, 160); if (keyPressed == true){ if(key == CODED){ if(keyCode == RIGHT){ x = x+10; } if(keyCode == LEFT){ x= x-10; } if(keyCode == UP){ y= y-10; } if(keyCode == DOWN){ y= y+10; } rect(x, y, 20, 20); } } }