How to create a house in MSW Logo
We will create a house in MSW logo. We were drawn a house by hand with pencil or paint software or photoshop etc., Here, we will create a house by code that is MSW logo.
House-MSW Logo |
How to create the above house in MSW Logo.
Code
setfloodcolor 1
repeat 2[fd 120 rt 90 fd 200 rt 90]
pu
fd 20
rt 90
fd 20
fill
rt 180
fd 20
lt 90
fd 20
lt 90
fd 200
lt 90
pd
setfloodcolor 2
repeat 2[fd 120 rt 90 fd 100 rt 90]
pu
fd 20
rt 90
fd 20
fill
rt 180
fd 20
rt 90
fd 100
lt 90
fd 200
rt 120
pd
setfloodcolor 4
fd 100
rt 60
fd 200
rt 120
fd 100
pu
rt 180
fd 30
lt 90
fd 20
fill
rt 180
fd 20
lt 90
fd 70
rt 120
pd
setfloodcolor 6
fd 100
pu
rt 180
fd 30
lt 90
fd 10
fill
ht
If you will try this code, you can get the above image. If you have any doubt, please comment in comment section.
0 Comments