Reputation: 359
Is there a good way to set the color of turtles that share the same parameter to the same color? I can't think of the correct syntax.
Upvotes: 0
Views: 137
Reputation: 9610
By "share the same paramter", I assume you mean "have the same value of an attribute. Use with
. E.g., ask turtles with [size = 2] [set color blue]
Edit:
If you have man different possible attribute values, the same idea holds, but you will probably want to use scale-color
. E.g., ask turtles [set color scale-color blue size 0 5000]
Upvotes: 1