程式碼:
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

沒有留言:
張貼留言