Creating Procedures in Blackcat Logo

Transcription

Creating Procedures in Blackcat Logo
Creating Procedures
in Blackcat Logo
Typing the commands one
step at a time and using the
enter key after each
command would be typical
of a pupil working at Level 2
in Interactive Design.
Typing commands one after
the other using the enter
key only once after all the
commands have been
written would be typical of
Level 3 work in Interactive
Design.
More efficient instructions
may be scripted by using the
‘Repeat’ command, which is
required in some of the
Interactive Design tasks. This
would show a pupil working
at Level 3 in Interactive
Design.
A level 4 in Interactive
Design should show use of a
procedure.
Open Blackcat Logo and
click the tab ‘Procs’ to
display the screen shown.
Click the button to create a
procedure.
A dialogue box appears.
Type the name of the
procedure in this box.
In this example, we will call
the procedure ‘octagon’ to
make an octagon.
Click ‘OK’
More efficient commands are
shown in this example where
the repeat command is used
to replace fd 100 rt 45 being
keyed in 8 times. These
commands, fd 100 rt 45,
have been placed inside
brackets whilst outside the
brackets, Repeat 8 instructs
the program to run it 8
times. This would be
expected from a pupil
working with procedures at
Level 4.
It is possible to view what a
procedure will do by clicking
the traffic light icon.
Close the procedure window.
The procedure is contained
in the right column.
To edit it, click the yellow
box with a P and click the
pencil icon.
The pupil can now use the
procedure ‘octagon’ in any
commands keyed into the
command window.
This is typical of a pupil
working at Level 4 work in
Interactive Design.
In this example, octagon
will be called up in a
repeat command to make a
tessellating pattern.
This would be typical of a
pupil working well at Level
4 in Interactive Design.
The instruction creates a
tessellating pattern.
A pupil working at Level 5
in Interactive Design,
should be able to use a
procedure within another
procedure.
In this example, a new
procedure is being created
called ‘tessellate’.
The commands that were
typed in the command
window can be placed in
the tessellate procedure.
So this procedure called
‘tessellate’ now uses the
‘octagon’ procedure within
it.
This would be typical of a
pupil working at Level 5 in
Interactive Design.