Ta sử dụng lệnh vẽ hình tròn circle
circle 100 circle 150 repeat 12[pu fd 100 pd fd 50 pu bk 150 rt 360/12]
repeat 8[repeat 8[fd 100 rt 360/8]rt 360/8]
repeat 8[pu rt 22.5 fd 160 setfc 3 fill fd 100 setfc 4 fill bk 260 rt 22.5]
Sử dụng lệnh Repeat vẽ hình vuông, kết hợp lệnh vẽ cung tròn Arc2 để tạo hình như trên
repeat 4[repeat 4[fd 100 rt 90]rt 90]
repeat 4[pu rt 45 fd 10 setfc 4 fill bk 10 rt 45]
pd circle 100
repeat 4[pu rt 45 fd 10 setfc 7 fill bk 10 rt 45]
home
pd repeat 4[arc2 -180 50 arc2 -180 25 rt 180 arc2 180 25 rt 90]
pu repeat 4[rt 45 fd 50 setfc 4 fill bk 50 rt 45]
pu repeat 4[lt 10 fd 75 setfc 4 fill bk 75 lt 80]
Kết hợp lệnh vẽ hình tròn Circle và nữa cung tròn Arc2
pd circle 200 setfc 10 fill
pd circle 200 setfc 4 fill
pd circle 160 setfc 5 fill
lt 150 repeat 7[repeat 2[arc2 90 85 rt 90]rt 35]
pu home bk 50 setfc 10 fill rt 9 bk 50 pd pu home
setpc 1
repeat 4[repeat 4[fd 200 rt 90]rt 90]
pu setxy 100 100 pd
repeat 4[repeat 4[arc2 90 100 rt 90 arc2 90 100 rt 180]repeat 4[pu rt 45 fd 20 setfc 4 fill bk 20 rt 45]pu bk 200 rt 90 pd]
repeat 12[fd 150 rt 150 fd 87 rt 60 fd 87 rt 150 rt 360/12]
repeat 8[repeat 4[fd 100 rt 90]fd 100 rt 360/8]
Nguồn: Phú Bến Youtube
0 Bình luận:
Đăng nhận xét