Tuyet Nguyen - Problem Set #2
 
Part 1
p1.dbn
// type program here
paper 65

Choose a single shade of a paper and render that shade.
 
Part 2
p2.dbn
// type program here
{
  repeat a 0 200
{
paper (a*2/6)
}

repeat a 0 100
{
paper a
}

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
// type program here
paper 25
//aaaahhhhh
{
   repeat b 250 500
   {
      paper (b/10)
   }
}
//aaaahhhh
{
   repeat b 250 500
   {
      paper (b/10)
   }
}

//choo!
{
   repeat a  200 140
   {
      paper (a/2)
   }
}

Create an animation of a sequence of shaded papers that evokes a sense of rhythm.
 
Part 4
p4.dbn
// type program here
{
   repeat a 200 1000
   {
      paper (a/20)
   }
   
   {
      paper 100
   }
}
}

Create an animation of a sequence of shaded papers that evokes a tranquil, sleepy image.
 
Part 5
p5.dbn
// type program here
{
   repeat a 1500 1000
   {
      paper (a/15)
   }
   repeat a 700 400
   {
      paper (a/10)
   }
   repeat a 200 0
   {
      paper (a/5)
   }
}

Create an animation of a sequence of shaded papers that evokes a gradually increasing/heightening feeling.
 
Part 6
p6.dbn
// type program here
repeat a 100 0
{
   paper 30
   line 30 a a 30
}

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
// type program here
repeat a 100 0
{
   paper 30
   line 30 a a 30
   line 50 50 a a
}


Add another line and let two lines fly in contrasting styles.
 
Part 8
p8.dbn
// type program here
//I'm shrinking, I'm shrinking
repeat a 100 0
{
   paper 0
   line 50 0 a a
   line a a 0 50
}

Let two lines fly in cooperative styles.
 
Part 9
p9.dbn
// type program here
//All I would change is the color.  It is
//too dark.  A lighter shade allows us to
//see the dotted line more clearly.
paper 10
{
   repeat a 0 100
   {
      set b (a+b/4)
      set [(a+50) b] 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
// type program here
// I felt that the pyramid needed some ground 
// to stand on.  Leaving it just floating in the 
// air is unnatural.  

paper 20
{
   pen 40
   repeat b 0 35
   {
      line 0 b 100 b
   }
}
repeat x 0 70
{
   repeat y 0 20
   {
      pen(100-x-y)
      line(x+25-y) (25-y) 47 80
   }
}

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