• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • about this course
  • syllabus
  • rubric
  • labs
  • blog

HCI | TechX

August 15, 2020

Homework Day 8 – Simon Hsieh

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.

3D Doge Face

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();
}
}
}

Filed Under: blog

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Recent Posts

  • Homework Day 8 – Simon Hsieh
  • homework day 8 – Michael
  • Homework-day8-Sophie
  • Harry Hao HW DAY8
  • homework day 8 – dora

Copyright © 2025 HCI | TechX on the Brunch Pro Theme