Nov 242017
- Plan and create a picture in LOGO
- Use
- repeat
- setxy
- procedures (at the beginning)
Repeat
repeat
[
instructions
]
Double repeat – eg square of shapes
repeat 4
[
repeat
[
pattern code
]
rt 90
]
Setxy
pu setxy 100 200 pd
Procedures
to thing
instructions for thing
end
thing
Variables
make “length 20
fd :length
Make “length :length + 1
Procedures with variables
to square :side (don’t need to make “side)
fd :side rt 90
end
square 40
Can have more than one variable, eg
to shape :length :angle :col
repeat 4
[
colour :col
fd :length rt :angle
]
Lists
make “cols [“red “blue “purple]
item 3 :col
Success steps
- Plan your shape (could draw it first eg in j2e5)
- Type – Play – Think – Edit – Type – Play ….
- Be resilient