Monday, October 15, 2001

Weekly update- has anyone seen Amelie? top film.

Thursday, October 04, 2001

Here's my dbn homework for Stuart:

//No. 1a- lines
paper 50
pen 100
line 10 20 90 20
pen 0
line 50 40 50 60

---------------------------

//No.1b-triangles
paper 100

Command drawTria x1 x2 y1 y2 z1 z2 color
{
line x1 x2 y1 y2
line y1 y2 z1 z2
line z1 z2 x1 x2
}

pen 0

drawTria 0 0 0 25 25 0 100
drawTria 0 25 25 25 25 0 90
drawTria 25 0 25 25 50 25 80
drawTria 25 0 50 0 50 25 70
drawTria 50 0 50 25 75 25 60
drawTria 50 0 75 25 75 0 50
drawTria 75 0 75 25 100 25 40
drawTria 75 0 100 25 100 0 30

drawTria 0 25 25 25 0 50 100
drawTria 0 50 25 50 25 25 90
drawTria 0 50 0 75 25 50 80
drawTria 0 75 25 75 25 50 70
drawTria 0 75 0 100 25 75 60
drawTria 0 100 25 100 25 75 50
//i was expecting the pen colour to change as they went along,
//and would have prefered them to draw over out slowly over time. they didnt,
// but i left them all in anyway.
repeat B 26 100
{
pen 25
line 26 26 B 100
}
repeat C 26 100
{
pen 50
line 26 26 100 C
}
pen 100
line 25 100 100 25
//this ones a bit messy, might do another triangle one.

-----------------------------------------------------------

//No.1b - 2nd attempt
paper 100

Command drawTria x1 x2 y1 y2 z1 z2 color
{
line x1 x2 y1 y2
line y1 y2 z1 z2
line z1 z2 x1 x2
}

repeat A 0 100
{
pen 0
drawTria A 0 0 100 100 0 100
pen 20
drawTria A 100 100 100 100 0 2

}

repeat B 0 50
{
pen 40
drawTria B 0 50 50 100 0 2
pen 70
drawTria 50 50 100 50 100 B 1
}

repeat C 50 100
{
pen 60
drawTria 50 C 100 100 50 100 1
pen 100
drawTria 50 50 0 C 0 50 1
}

------------------------------------------------------------

//No.1c- rectangle
Command drawRect x1 y1 x2 y2 color
{
pen 100
line x1 y1 x1 y2
line x1 y1 x2 y1
line x2 y1 x2 y2
line x2 y2 x1 y2
}

drawRect 10 10 90 90 100

pen 50
line 20 20 80 20
line 80 20 80 80
line 80 80 20 80
line 20 80 20 20

-------------------------------------------------------

//No.1d- name- portrait?
paper 100 pen 0

repeat A 80 50
{
line 20 A 50 A
}

repeat B 20 50
{
line B 50 35 40
}

pen 100
repeat C 70 65
{
line 27 C 32 C
line 43 C 38 C
}

line 24 66 30 72
line 46 66 40 72

line 28 52 42 52

repeat D 80 85
{
pen 50
line 35 80 20 D
line 35 80 50 D
}

repeat E 0 10
{
line 20 85 (E*2) 20
}

repeat F 25 35
{
line 50 85 (F*2) 20
}

pen 0
line 68 60 75 90
line 75 90 82 60
line 71 72 79 72
line 86 85 86 60
line 86 60 95 60
pen 100
line 42 52 46 55
line 28 52 26 53

Wednesday, October 03, 2001

Hello there. This is my first entry, so i'll make it short.