2016年11月8日 星期二

week 9. abstract machine



Turing machine

abstract machine

infosthetic physical

dataisnature

ACG at MIT concept film: visual machine
curve


Q & A , review
abstract machine in Processing

Midterm :

3 pairs of abstract machine with contrasts
deadline Nov. 16, 2016


a pair of machine sample codes:

void setup()
{
 size(1200, 400);
 fill(0,0,0);
 rect(0,0,width/2, height);
 fill(128,128,128);
 rect(width/2, height, width, height);
}

void draw()
{
 
  if (mouseX< width/2)
  {
    machine1();
  }
  else
  {
    machine2();
  }
}

void machine1()
{
 
  if (mousePressed)
  {
  fill(0,0,0);
  rect(0,0,width/2, height);
  fill(255, 255,255);
  rect(mouseX, mouseY, 10, 10);
  }
}

void machine2()
{
  if (mousePressed)
  {  
    fill(128,128,128);
    rect(width/2, 0, width, height);
    fill(255, 255,255);
    ellipse(mouseX, mouseY, 20, 20);
  }
}

沒有留言:

張貼留言