再利用方形和三角形排列出房屋線條
構成了一幅像在放煙火的圖樣

程式碼:
load dbngraphics.dbn
paper 0 0 0
size 500 300
fast
circle 75 125 20 20
circle 75 125 25 25
circle 75 125 30 30
circle 75 125 5 5
circle 75 125 4 4
circle 75 125 3 3
circle 150 300 100 0
circle 150 300 75 0
circle 150 300 50 0
circle 150 300 25 0
circle 275 175 25 25
circle 275 175 20 20
circle 275 175 15 15
circle 275 125 10 10
circle 225 170 10 10
circle 325 170 10 10
circle 275 225 10 10
circle 242 140 10 10
circle 310 140 10 10
circle 310 205 10 10
circle 242 205 10 10
circle 500 290 25 25
circle 500 290 35 35
circle 500 290 45 45
circle 500 290 55 55
pen 100 100 100
line 300 30 310 50
line 310 50 340 50
line 340 50 350 30
line 390 60 400 60
line 395 65 395 55
triangle 350 30 361 60 375 30
triangle 430 30 448 60 465 30
rectangle 300 0 350 30
rectangle 380 0 425 40
rectangle 350 0 375 30
rectangle 390 40 415 70
rectangle 430 0 465 30
rectangle 470 0 495 80
pen 100 100 0
rectangle 480 10 490 30
rectangle 480 50 490 70
rectangle 325 50 335 60
pen 100 0 0
rectangle 400 20 415 35
pen 100 0 0
Repeat A 25 75
{
line 73 A 78 A
}
pen 100 100 0
line 25 80 45 100
line 15 120 40 120
line 75 165 75 185
line 25 170 50 150
line 130 170 110 150
line 115 120 140 120
line 105 100 125 80

沒有留言:
張貼留言