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

HCI | TechX

August 11, 2020

hw day5-王婧怡Nancy

processing code here

float thicknum = 0.5;
float lean_r = 417;
float lean_b = 489;
float lean_g = 279;
float angle = 0;
int gap = 4;
void setup(){
size(1210,1210);
background(255);

}

void keyPressed(){
if (key == ‘u’){
gap = gap + 1;
//println(‘.’);
}
else if(key == ‘d’){
gap = gap – 1;
//println(‘2’);
}
}

void draw(){
background(255);
//angle = map(mouseX,0,width,0,PI);
pushMatrix();
translate(mouseX-1210,mouseY-1210);
//rotate(angle);
//red
for (int i = 0; i < width+1000;i = i + gap) { float randomnum = random(0,100); if (randomnum <= 1) { i=i+1; } if ((i>600&&i<600+random(85,100))||(i>830&&i<830+random(85,100))){ continue; } stroke(255,0,0); strokeWeight(thicknum); line(i,0,(i-lean_r)4,height4); } //blue for(int m = 0;m < width + 1000;m = m + gap) { float randomnum = random(0,100); if (randomnum <= 1) { m=m+1; } if ((m>200&&m<200+random(85,100))||(m>430&&m<430+random(85,100))||(m>750&&m<750+random(85,100))||(m>997&&m<997+random(85,100))){ continue; } stroke(0,0,255); strokeWeight(thicknum); line(m,0,(m-lean_b)4,height4); } //green for(int n = -300;n < width + 500;n = n + gap) { float randomnum = random(0,100); if (randomnum <= 1) { n=n+1; } if ((n>250&&n<250+random(85,100))||(n>590&&n<590+random(85,100))||(n>780&&n<780+random(85,100))){
continue;
}
stroke(0,255,0);
strokeWeight(thicknum);
line(0,n,width4,(n-lean_g)4);
}
popMatrix();
}

Dithering lines represent uncertainty, and controlled spacing represents certainty, showing the combination of uncertainty and certainty.

Q1: It is more convenient to store the image and protect the image from loss of information due to time. Examples: Digital archives of Dunhuang Grottoes.
Q2: No,I don’t. Hand drawings have more texture than computer graphics. At the same time, hand drawings look different in different light conditions.
Q3: No, I don’t. Technology was born to serve humanity. When it tends to displace humanity, it has no meaning. So humans will stop it before it replaces them. Art produced by human is different from the one produced by computer. They may become equal, but they cannot replace each other. Whoever use the computer to draw and create marvelous pieces can be artists, rather than the computer becoming the artist.

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