Nick deMarco
- Problem Set #2
| ||
Part 1 |
p1.dbn |
// select a shade of paper and render it paper 59 |
Choose a single shade of a paper and render that shade.
| ||
Part 2 |
p2.dbn |
set c 0 repeat d 0 3 { set c d Repeat a 15 25 { Paper (a+4) } repeat e 26 70 { paper e } repeat f 71 96 { paper (f+2) } repeat b 99 70 { paper (b-2) } repeat g 69 25 { paper g } repeat h 24 15 { paper (h-4) } } |
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 |
// sequence of papers - animation, rhythm repeat b 0 3 { set b (b+1) repeat a 0 30 { paper (a+55) } repeat c 0 30 { paper (85-c) } } |
Create an animation of a sequence of shaded papers that evokes a sense of rhythm.
| ||
Part 4 |
p4.dbn |
// sleepy image repeat h 0 5 { set y 40 repeat a 5 40 { paper a } paper 40 paper 40 paper 40 paper 39 repeat b 5 39 { set x 1 set y (y-x) paper y } } |
Create an animation of a sequence of shaded papers that evokes a tranquil, sleepy image.
| ||
Part 5 |
p5.dbn |
repeat a 0 20 { paper a } repeat b 0 5 { paper 20 } repeat c 21 50 { paper c paper c } repeat d 0 4 { paper 50 } repeat e 51 76 { paper (e + 2) paper (e + 2) } repeat f 0 9 { paper 0 paper 100 } |
Create an animation of a sequence of shaded papers that evokes a gradually increasing/heightening feeling.
| ||
Part 6 |
p6.dbn |
pen 100 repeat a 0 20 { paper a line a 0 a 100 } set a 20 repeat b 0 5 { set b b paper 20 line (a+b) 0 (a+b) 100 } repeat c 21 50 { line (c+5) 0 (c+5) 100 paper c line (c+5) 0 (c+5) 100 paper c } pen 10 repeat d 0 4 { line (d+55) 0 (d+55) 100 paper 50 } repeat e 51 76 { line (e+8) 0 (e+8) 100 paper (e + 2) line (e+8) 0 (e+8) 100 paper (e + 2) } paper 100 repeat f 0 33 { set f f paper 100 line (f*3) 0 (f*3) 100 } pen 100 repeat w 0 5 { paper 0 line 0 0 100 100 paper 100 paper 0 line 100 0 0 100 } |
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 |
paper 10 pen 100 repeat a 0 100 { line a 0 0 a line 0 (100-a) a 100 line (100-a) 100 100 (100-a) line (100-a) 0 100 a paper 10 } repeat b 0 100 { line b 100 100 b line b 0 100 (100-b) line 0 (100-b) (100-b) 0 line 0 b (100-b) 100 paper 10 } |
Add another line and let two lines fly in contrasting styles.
| ||
Part 8 |
p8.dbn |
paper 75 pen 0 repeat a 0 100 { set b (a+15) line 0 (100-a) a 100 line 0 (100-b) b 100 paper 75 } repeat c 0 100 { set d (c+15) line c 0 100 (100-c) line d 0 100 (100-d) paper 75 } |
Let two lines fly in cooperative styles.
| ||
Part 9 |
p9.dbn |
// lauren's line //paper 30 //pen 0 //line 7 7 93 50 // // //Lauren's line is a white line on light //gray background. It fills most of the //the bottom half, at an approximate //angle of 25 degrees. It does not quite //start or finish at the ends of the paper. //It is well chosen because its //characteristics are quite unique. //I however, would prefer a greater //magnitude so the line would go closer to //the edges of the page, still keeping its //distance though. paper 30 pen 0 line 2 2 97 50 |
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 |
//This piece was one of my favorite in //the class. She utilizes the shading //to complement her increasingly //smaller square design. //This creates a very complex, yet simple //design; it represents a simple image //magnified, creating a complex object. //The three dimensional image is //quite visible to the viewer. // //It would be more three dimension I think //if the shading was darker. //(I change the pen color througout the //program) // // // // lauren's object paper 50 // bottom half repeat x 0 50 { repeat v 0 50 { pen (x+11) line (v+50) x 100 x } } // tophalf repeat y 0 50 { repeat z 0 50 { pen (y+11) line 0 (100-y) z (100-y) } } // squares repeat b 15 25 { set a (b*2) pen (a+10) line a a (100-a) a line (100-a) a (100-a) (100-a) line (100-a) (100-a) a (100-a) line a (100-a) a a } repeat d 15 25 { set c (d*4) pen ((d-15)*15) line c c (100-c) c line (100-c) c (100-c) (100-c) line (100-c) (100-c) c (100-c) line c (100-c) c c } |
Do the same as above for Part 10 of Problem Set 1.
|