|
Christopher McGillicuddy
- Problem Set #2
| ||
|
Part 1 |
p1.dbn |
paper 78 |
|
Choose a single shade of a paper and render that shade.
| ||
|
Part 2 |
p2.dbn |
repeat n 0 50
{
paper (100+(n*(-1)))
}
repeat x 25 75
{
paper (100+(x*(-1)))
}
repeat y 50 100
{
paper (100+(y*(-1)))
}
|
|
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 n 60 90
{
paper n
}
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
repeat n 90 60
{
paper n
}
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
paper 90
paper 10
repeat n 60 90
{
paper n
}
|
|
Create an animation of a sequence of shaded papers that evokes a sense of rhythm.
| ||
|
Part 4 |
p4.dbn |
repeat s 1 9
{
paper s
}
repeat g 10 2
{
paper g
}
repeat s 1 9
{
paper s
}
repeat g 10 2
{
paper g
}
repeat s 1 9
{
paper s
}
repeat g 10 2
{
paper g
}
repeat s 1 9
{
paper s
}
repeat g 10 2
{
paper g
}
repeat s 1 9
{
paper s
}
repeat g 10 2
{
paper g
}
|
|
Create an animation of a sequence of shaded papers that evokes a tranquil, sleepy image.
| ||
|
Part 5 |
p5.dbn |
repeat v 5 15
{
paper v
}
paper 100
paper 1
repeat p 50 60
{
paper p
}
paper 10
paper 90
paper 1
paper 100
paper 1
repeat l 1 20
{
paper l
}
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
|
|
Create an animation of a sequence of shaded papers that evokes a gradually increasing/heightening feeling.
| ||
|
Part 6 |
p6.dbn |
repeat v 5 15
{
paper v
}
paper 100
paper 1
repeat p 50 60
{
paper p
}
paper 10
paper 90
paper 1
paper 100
paper 1
repeat l 1 20
{
paper l
}
repeat x 0 1
{
Repeat a 20 30
{
paper 1
Line a x a 20
}
}
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
|
|
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 v 5 15
{
paper v
}
paper 100
paper 1
repeat p 50 60
{
paper p
}
paper 10
paper 90
paper 1
paper 100
paper 1
repeat l 1 20
{
paper l
}
repeat x 0 1
{
Repeat a 20 30
{
paper 1
Line a x a 20
}
}
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
repeat x 89 92
{
Repeat a 20 30
{
pen 20
paper 80
Line x a a x
}
}
paper 80
|
|
Add another line and let two lines fly in contrasting styles.
| ||
|
Part 8 |
p8.dbn |
repeat v 5 15
{
paper v
}
paper 100
paper 1
repeat p 50 60
{
paper p
}
paper 10
paper 90
paper 1
paper 100
paper 1
repeat l 1 20
{
paper l
}
// first line
repeat x 20 25
{
Repeat a 20 30
{
paper 1
Line a x a 20
}
}
paper 30
paper 80
paper 10
paper 90
// second line
repeat x 80 85
{
Repeat a 65 75
{
paper 90
pen 20
Line a x a 80
}
}
paper 1
paper 100
paper 30
paper 80
paper 30
paper 80
paper 10
paper 90
paper 1
paper 100
paper 30
paper 80
|
|
Let two lines fly in cooperative styles.
| ||
|
Part 9 |
p9.dbn |
// I decided to leave the "line" to the side
// and change the colors:
// first I've lightened the background for more contrast
// for more contrast, then I changed the pen to
// so that it would have the "line" gradually
// fade into a rich black.
////////////////////////////////////////////////////////
paper 1
repeat l 1 100
{
pen l
line 60 50 59 53
line 59 53 58 55
line 58 55 55 58
line 55 58 53 59
line 53 59 50 60
line 50 60 46 59
line 46 59 44 58
line 44 58 41 55
line 41 55 40 53
line 40 53 40 50
line 40 50 40 46
line 40 46 60 20
line 60 20 61 18
line 61 18 64 15
line 64 15 66 14
line 66 14 69 14
line 69 14 73 14
line 73 14 75 15
line 75 15 78 18
line 78 18 79 20
line 79 20 80 24
line 80 24 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 |
// I lengthened the shadow to
// created an edge/horizon as well as lightening
// the shadow to make it more
// shadowy and less like a black hole
// I've also added some stars to
// create a time of day.In the star field
// there is a loose box ouline creating a
// gaze between the box and the stars.
////////////////////////////////////////////
paper 0
// I realize the shadow isn't that realistic
// it's fun to watch it draw.
// the surface
repeat A 0 55
{
pen (25+20*A/55)
line 0 A 100 A
}
// Dark sky
pen 75
repeat a 100 56
{
line 0 a 100 a
}
// shadow 1
pen 90
repeat A 20 50
{
line A 30 90 55
}
// shadow 2
repeat A 30 50
{
line A 40 90 55
}
// shadow 3
repeat A 40 55
{
line 55 a 90 55
}
//box
pen 50
repeat A 20 50
{
repeat B 30 60
{
line A B (A+10) (B+10)
}
}
// emphasize front line
pen 51
line 20 60 50 60
// dark side of cube
pen 65
repeat A 30 60
{
line 50 A 60 (A+10)
}
// stars
set [5 85] 35
set [17 63] 35
set [25 95] 35
set [97 87] 45
set [80 93] 1
set [80 85] 1
set [41 91] 35
set [72 80] 1
set [72 91] 1
set [7 99] 1
set [29 75] 35
set [59 97] 35
set [72 63] 40
set [89 80] 1
set [88 88] 1
set [79 74] 1
|
|
Do the same as above for Part 10 of Problem Set 1.
| ||