Professional Documents
Culture Documents
``
Type Click on the code tab.
Under the create-turtles 50 and before [
setxy random xcor random ycor
]
Type:
ask patches [ set pcolor blue ]
This will set the background to blue.
``
Now delete
;; [
;; setxy random xcor random ycor
;;]
``
Now click on the setup button we made in the
previous tutorial. The background should turn to
blue.
``
Click on the button and select slider.
In the white space to the left of the screen click to
get a slider button created.
``
Delete or comment out create-turtles 50
After ask patches [set pcolor blue ] and before the
end
Type:
set-default-shape Fishs "fish"
create-Fishs InitialFish
[
set color yellow
set size 5
]
``
Click on the check mark to check and upload the code
Click on the interface tab
slide the fish to 3 fish
Hit setup
Click on the go button
While its down it will move the fish around
While go is pressed go to the top middle of the page
Slide the normal speed to slow the process down slide
speed to slow. The fish will move in the tank slowly
now.
``