2009年11月13日 星期五

作業五:Time





程式碼:

Load dbngraphics.dbn
size 200 200
paper 50

command rect x y w h c
{

pen c

line (x-w/2) (y-h/2) (x+w/4) (y-h/4)

line (x+w/4) (y-h/2) (x+w/4) (y+h/4)

line (x+w/2) (y+h/2) (x-w/4) (y+h/4)

line (x-w/4) (y+h/2) (x-w/4) (y-h/4)
}

repeat v1 0 200
{

rect 100 100 v1 v1

沒有留言:

張貼留言