Post Graduate Student
Information & Digital Design
Batch 2007-2009
National Institute of Design
Assignment 01
Reproducing a Piet Mondrian work using Processing.
Original Work is as shown below:

The following is the code:
void setup()
{
size (300,300);
background (255,255,255);
}
void draw()
{
strokeWeight (7);
line (70,0,70,300);
line (280,300,280,220);
line (0,220,330,220);
strokeWeight (10);
line (0,95,65,95);
strokeWeight (8);
line (285,260,300,260);
strokeWeight (1);
fill (255,0,0);
rect (73,0,230,219);
fill (0,0,255);
rect (0,225,66,80);
fill (255,255,0);
rect (281,263,35,263);
}
Finally, shown below is the output:

Assignment 02
To write a program where different keys would fill in different colours in the blocks on the screen.
The following is the program that was written for the keys 'e','u','r' and 'o':
int Length = 800;
int Width = 500;
void setup()
{
size (Width, Length);
background(0,0,0);
}
int value =255;
void draw() {
fill(255);
rect(0, 600, 200, 200);
fill(255);
rect(300, 400, 200, 200);
fill(255);
rect(0, 200, 200, 200);
fill(255);
rect(300, 0, 200, 200);
if(keyPressed) {
if (key == 'e' || key == 'E') {
fill(255,0,0);
}
rect(0, 600, 200, 200);
if (key == 'u' || key == 'U') {
fill(0,255,0);
rect(300, 400, 200, 200);
}
if (key == 'r' || key == 'R') {
fill(0,0,255);
}
else {
fill(255);
}
rect(0, 200, 200, 200);
if (key == 'o' || key == 'O') {
fill(255,255,0);
}
else {
fill(255);
}
rect(300, 0, 200, 200);
}
}
And shown here is the output of the program when the four different keys, 'e','u','r' and 'o' were pressed respectively:




Assignment 03
This assignment was meant to use some sort of physical interface to interact with the screen. It was done in groups of three. The description of the detailed process is given here.
Assignment 04
This assignment was meant to come up with concepts where we use any touch based interface to generate sound as an output. The description of the detailed process is given here.