Max G Van Kleek - Problem Set #2
 
Part 1
p1.dbn
paper 38

// Love this shade of gray.
// Staring draws me into void.  
// Concentrate within.

Choose a single shade of a paper and render that shade.
 
Part 2
p2.dbn
// the oscillating square
repeat iter 1 20
{
   repeat dark 0 (4*iter)
   { 
     paper dark
   } 
   repeat dark (4*iter) 0
   {
      paper dark
   }  
}


Create a sequence of shaded papers using the Repeat command as a short animation of brightness. For example
Repeat a 0 100
{
Paper a
}

 
Part 3
p3.dbn
// heartbeat
paper 100
forever
{
  repeat lub 0 10
  {
     paper (2*lub)
  } 
  repeat dub 0 30
  {
     paper (2*dub)
  } 
}


Create an animation of a sequence of shaded papers that evokes a sense of rhythm.
 
Part 4
p4.dbn
// sleep
//
// white -> gray
repeat a 10 60
{
   paper a 
}
// breathing
forever
{
   repeat b 600 500
   { 
      paper (b/10) 
   }
   repeat b 1 2000
   { 
     set b b
   }
   repeat b 50 60
   { 
     paper b
   }
}



Create an animation of a sequence of shaded papers that evokes a tranquil, sleepy image.
 
Part 5
p5.dbn
// excitement
paper 38

repeat level 0 20
{
  repeat flash 0 5
  {
     paper (100 - 10*level)
     paper 38
  }
  repeat delay 0 (80 - (5*level))
  {
     paper 38
  }
}

repeat bliss 38 0
{
   paper bliss
}








Create an animation of a sequence of shaded papers that evokes a gradually increasing/heightening feeling.
 
Part 6
p6.dbn
// excitement + lines
repeat level 0 5
{
   paper 38
   pen (100 - 20*level)
   set x1 98
   set y1 0
   set x2 98
   set y2 100
   repeat inc 0 14
   {
      paper 38
      line x1 y1 x2 y2
      set x1 (x1 - inc)
      set y2 (y2 - inc)
   }
   set x2 98
   repeat sel 5 2
   {
      repeat t (-sel) sel
      {
         set y2 (-(t*t) + sel*sel)
         paper 38
         line x1 y1 x2 y2
      }
   }
   repeat flash 0 5
   {
       paper (100 - 20*level)
       paper 38
   }
}
repeat bliss 38 0
{
   paper bliss
}

Add a single line to the sequence, and let it fly in time. For instance
Repeat a 0 100
{
Paper 0
Line a 0 a 100
}

 
Part 7
p7.dbn
// excitement + 2 lines
repeat level 0 5
{
   paper 38
   pen (100 - 20*level)
   set x1 98
   set y1 0
   set x2 98
   set y2 100
   set x3 0
   set y3 100
   set x4 0
   set y4 0
   repeat inc 0 14
   {
      paper 38
      line x1 y1 x2 y2
      set x1 (x1 - inc)
      set y2 (y2 - inc)
      set y3 (y3 - 1)
      set x4 ((2 - 2*(inc/2))*(-1) + x4)
      set y4 (y4 + 1)
      line x3 y3 x4 y4
   }
   set x2 98
   repeat sel 5 2
   {
      set inc (inc + 5)
      repeat t (-sel) sel
      {
     
         set y2 (-(t*t) + sel*sel)
         paper 38
         set y3 (y3 - 2)
         set x4 ((2 - 2*(inc/2))*(-1) + x4)
         set y4 (y4 + 1)
         line x1 y1 x2 y2
         line x3 y3 x4 y4
      }
   }

   repeat flash 0 5
   {
      paper (100 - 20*level)
      paper 38
   }
}
repeat bliss 38 0
{
   paper bliss
}

Add another line and let two lines fly in contrasting styles.
 
Part 8
p8.dbn
// aruku
set y 40
pen 0
set x 100
repeat a 0 6
{
  repeat x1 (-10) 10
  {
    paper 38
    set x2 (x2 - 1)
    line x y (x + x1) 10
    line x y (x - x1) 10 
    set x (x - 1)
  }  
}


Let two lines fly in cooperative styles.
 
Part 9
p9.dbn
//Paper 50
//Pen 0
//Line 10 20 80 70
//
// critique
//
// i believe that your line 
// is a self-representation.
// the line breaks conformity with
// off-centeredness, but its long
// length and steep upwards climb
// indicate effort and struggle.
//
// your line floats in the air by itself. 
// perhaps this means that origin
// and destination are uncertain.
//
// i believe you would benefit from
// taking advantage of the tone of
// paper and pen to enhance your message.
// perhaps, you could express the
// idea that the path to your destination
// is visible but not obvious, 
// you could try reducing the contrast 
// of the paper and line, as follows: 
//
Paper 40
Pen 27
Line 10 20 80 70


Using Part 1 of Problem Set 1, you are asked to comment and improve on a colleague's work. The person you will choose is determined by your order in the pulldown menu of the main page. For example, Ben should comment on Bruce, Bruce on Nick, and all the way down to Hoeteck commenting on Ben (wrapped around). We don't have a form mechanism setup, so for now just put it inside your DBN buffer as a comment, and include a modified version of your colleague's program that reflects your suggestions.
 
Part 10
p10.dbn
// critique of Hoeteck's work
// 
// this is a perplexing figure
// which seems to appear almost
// as a negative-image of a lit
// cube. 
//
// the stark flatness of the
// background adds a perplexing
// quality as well. from one
// glance, it is interesting
// because the 3dimensional cube
// seems to make a bold statement
// in a grey void. however,
// since the cube makes enough
// of a statement already by
// its negated shading, i think
// that humbling the image a
// bit by adding a 3dimension
// table (with similar negated-shading)
// would be beneficial:
paper 40
repeat backx 0 100
{
  repeat backy 0 40
  {
     set [backx backy] (100 - (5*backy/4) - (100 - backx)/10)
  }
}  

Repeat A 0 30
{
   Repeat B 0 30
   {
      Pen (2*A+10)
      Line (A+20) 20 (A+20) 50
      Line (A+20) 50 (A+30) 60
   }
}
Repeat A 0 10
{
   Repeat B 0 30
   {
      Pen (70-(6*A))
      Line (A+50) (A+20) (A+50) (A+50)
   }
}
}

Do the same as above for Part 10 of Problem Set 1.