Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes
asked in CSC 150 January201920 by (1 point)

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 (4k 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 (1 point)
...