Ben Balas - Problem Set #2
 
Part 1
p1.dbn
paper 83
// I like this color. It's dark, but not
// as severe as 100. It has sort of a
// fuzzy quality to it that I like.
// Reminds me of velvet somehow.


Choose a single shade of a paper and render that shade.
 
Part 2
p2.dbn
repeat a 0 15
{
   repeat b 0 3
   {
      paper (100-33*b)
   }
}
//strobe flashes

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
repeat d 0 2
{
   repeat a 0 20
   {
      paper (a*5)
   }
   repeat b 1 3
   {
      repeat c 0 5
      {
         paper (c*20)
      }
   }
}
//Scaling the paper shading differently 
//produces various sizes of "beats."


Create an animation of a sequence of shaded papers that evokes a sense of rhythm.
 
Part 4
p4.dbn
repeat c 0 1
{
   paper 1
   pen 100
   repeat a 0 50
   {
      line 0 a 100 a
      line 0 (100-a) 100 (100-a)
   }
   pen 1
   repeat b 50 0
   {
      line 0 b 100 b
      line 0 (100-b) 100 (100-b)
   }
}
//two blinks before drifting off to sleep.
repeat d 0 40
{
   paper d
}
pen 100
repeat e 0 50
{
   line 0 e 100 e
   line 0 (100-e) 100 (100-e)
}
paper 1
//starting to doze, but awakes with a jolt!
repeat f 0 90
{
   paper f
}
pen 100
repeat e 0 50
{
   line 0 e 100 e
   line 0 (100-e) 100 (100-e)
}

Create an animation of a sequence of shaded papers that evokes a tranquil, sleepy image.
 
Part 5
p5.dbn
repeat a 1 4
{
   repeat b 100 (100-25*a)
   {
      paper b
   }
   repeat c (100-25*a) 100
   {
      paper c
   }
}
// This program is to simulate a "bouncing"
// feeling. We bounce up from black into 
// lighter shades, each time higher and 
// higher, until eventually we get a glimpse
// of pure white. A fleeting vision of the 
// this world.

Create an animation of a sequence of shaded papers that evokes a gradually increasing/heightening feeling.
 
Part 6
p6.dbn
repeat a 1 4
{   
repeat b 100 (100-25*a)
   {
      paper b
pen (100-b)
line (3*b) (b*b/70) (b*a/5) (10+b)
   }
   repeat c (100-25*a) 100
   {
      paper c
pen (100-c)
line (100-c) (c*c/50) (c*a*a/25) (c+3)
   }
}
//I dig this guy. He flies a lot. 

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
repeat a 1 4
{   
repeat b 100 (100-25*a)
   {
      paper b
pen (100-b) 
line (b+a*a) (b*b/80) (2*a*a*a-b) b 
line b (a*c/100) b (150-b)
}
   repeat c (100-25*a) 100
   {
      paper c
pen (100-c)
line (c-a*a) (c*c/70) (2*a*a*a-c) (c+2)
line (100-c) (a*c/100) (100-c) (150-c)
   }
}
//our free-spirited friend returns in a
//similar incarnartion. He is more periodic
//than before, sort of the nature of his 
//environment. His friend, however, merely
//travels straight through, not returning
//to where he's been.


Add another line and let two lines fly in contrasting styles.
 
Part 8
p8.dbn
repeat a 1 4
{
   repeat b 100 (100-25*a)
   {
      paper b
      pen (100-b)
      line b (b+15) (b-80) (3*b-148)
      line b 35 (b-10) (3*b)
   }
   repeat c (100-25*a) 100
   {
      paper c
      pen (100-c)
      line c (c+15) (c-80) (3*c-148)
      line c 35 (c-10) (3*c)
   }
}
//these two lumbering giants slowly tumble
//in tandem towards the lower right.

Let two lines fly in cooperative styles.
 
Part 9
p9.dbn
// First, I like white-on-black a lot.
// Also, putting the line in a corner
// helps impart emotion to the scene.
// In an upper corner, it could be seen
// as aloof, in a lower one, afraid.
// Moving it substantially requires
// making it smaller, but the slope has
// been preserved.
paper 100
pen 0
line 80 61 98 85


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
paper 100
repeat x 0 20
{
   repeat y 0 50
   {
      pen (x+4*y/3)
      line (x*5) 0 (y+5*x/2) 100
   }
}
// I liked the look of pages in a book.
// however, there weren't a lot of them
// in the original picture, so I scaled
// the line to always fit inside the DBN
// window. I also increased the number
// of iterations of the outside loop.
// Looking at it now, I really get a 
// sense of pages. I also think the
// curves that result near the bottom
// of the screen are very interesting.



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