Getting turtles move in an are with scale-color

5 views
Skip to first unread message

Tobias Koch

unread,
Jan 15, 2020, 11:24:14 AM1/15/20
to netlogo-users
Hello, 

I'm trying to get my turtles move on patches with scale-color. I managed to get them moving on the pcolor gray with this code:
ask turtles with [shape = "dot"][if [ pcolor ] of patch-ahead 6 != gray [set heading heading - 100 ]]

However, I colored my map with scale-color gray, and the turtles should move on the scaled colors. Does anyone know the code for this?

Thanks :)

Arthur Hjorth

unread,
Jan 15, 2020, 1:01:09 PM1/15/20
to Tobias Koch, netlogo-users
If you are using regular netlogo colors, you can use the shade-of? reporter.


Posting from my phone so apologies for the brevity.

Best,
Arthur


--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/d70ef77f-66b8-499c-ab9b-740f8d298b42%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages