UserBRy
UserBRy

Reputation: 359

Netlogo: Color turtles who share a parameter to the same color

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

Answers (1)

Alan
Alan

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

Related Questions