Help #1562
Unanswered
BENFREDJRima-34
asked this question in
Q&A
Help
#1562
Replies: 3 comments 8 replies
-
Just a note: make sure to use triple backticks when formatting multi-line code: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks. I had to manually edit your posts in the past, but would be great if it is correctly formatted from now on. |
Beta Was this translation helpful? Give feedback.
1 reply
-
The problem is this function def agent_portrayal(agent):
portrayal = {"Shape": "circle", "r": 0.5, "Filled": "true", "Layer": 0}
if agent.state is State.Nadoter:
portrayal["Color"] = "Red"
portrayal["Color"] = ["#FF0000", "#FF9999"]
portrayal["stroke_color"] = "#00FF00"
else:
portrayal["Color"] = ["#0000FF", "#9999FF"]
portrayal["stroke_color"] = "#000000"
return portrayal
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, can anyone tell me where is the error?
the problem is: Once, I run the program in the browser will display an environment with some blue agents, however, the program is planned to display red agents and some blue agents and when I start the simulation the red agents will change its color to blue
Beta Was this translation helpful? Give feedback.
All reactions