Skip to content

Commit

Permalink
* change colors to make accessible to colorblind
Browse files Browse the repository at this point in the history
* change slider values to prevent edge case error
  • Loading branch information
tpike3 committed Apr 16, 2024
1 parent 1861942 commit 95c0fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gis/geo_schelling_experimental/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def schelling_draw(agent):
if agent.atype is None:
portrayal["color"] = "Grey"
elif agent.atype == 0:
portrayal["color"] = "Red"
portrayal["color"] = "Orange"
else:
portrayal["color"] = "Blue"
return portrayal
Expand All @@ -35,7 +35,7 @@ def schelling_draw(agent):
"value": 0.6,
"label": "Population Density",
"min": 0.0,
"max": 1.0,
"max": 0.9, # Prevents error if there is no place to move
"step": 0.1,
},
"minority_pc": {
Expand Down

0 comments on commit 95c0fb3

Please sign in to comment.