The projects that I did were mostly dynamic-interactive, but there is nothing that varies the experience based on previous actions. I feel like a degree of complexity is required in order to achieve this fourth type of artwork and thus will be quite hard for me to achieve.
This process of interaction is quite engaging for me at the start – as I moved the mouse, the doge image in the computer screen popped out in a funny manner. However, it quickly became boring after a while as nothing was new. In order to keep things fun, I’ll need to introduce new elements of change and make it a type 4 artwork as mentioned in the article.
PImage img;
int rectSize = 5;
void setup() {
size(600, 600, P3D);
background(255);
frameRate(9999999);
img = loadImage(“024.png”);
}
void draw() {
background(255);
for (int x=0; x<img.width; x+=rectSize) {
for (int y=0; y<img.height; y+=rectSize) {
int index = x + y*img.width;
color c = img.pixels[index];
float r = red(img.pixels[index]);
float g = green(img.pixels[index]);
float b = blue(img.pixels[index]);
float brightness = brightness(img.pixels[index]);
float z = brightness;
z = map(z, 255, 0, 0, mouseX);
noStroke();
fill (c);
pushMatrix();
translate(x,y,z);
rectMode(CENTER);
rect(0, 0, rectSize, rectSize);
popMatrix();
}
}
}
Leave a Reply
You must be logged in to post a comment.