Color Cannon; Interactive Design

 

This project was part of the student Mat Jam. For our group’s we created a program in processing where 4 mats would splatter colors on a white canvas. The 5th mat would reset the screen to a blank canvas. My role in this project was helping create the color code and making 4 keys splatter a color when pressed.

Code I helped make:

PImage img; void setup(){

background(255); size(800,600);

img = loadImage(“frame9.png”);

}

 

void draw(){

if (keyPressed) {

if (key == ‘q’ || key == ‘Q’){

tint(50,25,255);

image(img,50,0,width/2,height/2);

}

}

if (keyPressed) {

if (key == ‘w’ || key == ‘W’){

tint(255,50,50);

image(img,0,50,width/2,height/2);

}

}

if (keyPressed) {

if (key == ‘e’ || key == ‘E’){

tint(50,90,50);

image(img,100,0,width/2,height/2);

}

}

if (keyPressed) {

if (key == ‘r’ || key == ‘R’){

tint(25,50,50);

image(img,0,100,width/2,height/2);

}

}

if (keyPressed){

if (key == BACKSPACE) {

background(255); }

}

}

 

Overall I say, in regards to interactive design, our piece was fairly effective. It is quite engaging as a piece since the person interacting is creating everything on the screen.

Advertisements
This entry was posted in Time-Based and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s