Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes
asked in CSC 150 January201920 by (8 points)

2 Answers

+8 votes
 
Best answer

At the moment you create a turtle, you can give it some commands, so, if you want to get TWO turtles -- one red and one blue, you can use this code:

crt 1 [ 
   set color red 
]
crt 1 [  
   set color blue 
]

Notice that if you do the following, then all the turtles will end up being BLUE, since it asks ALL the turtles, not just the last turtle that was created, to turn blue.

crt 1
ask turtles [
    set color red
]
crt 1 
ask turtles [
  set color blue
]
answered by (12.1k points)
selected by
0

Thank you, professor

+7 votes

Yeah if you mean when editing a turtle all you have to do is pick on the dark shapes when you choose your color and then you click on them and then you can pick which color you want to set it from the different set of colors on the side.

answered by (116 points)
...