Dear Chris,
Few comments:
- I do not understand why you have so many match_between cases, with always the same color value assigned to the sDColor variable.
- I do not understand why you have all the match_between and the default , that assign the same color.
But the most important remark:
- I do not understand why you have the last line : " sDColor <- rgb((ShrimpDensity_m)/10*245,245,245);" : it will change the color of all the agents (and make the switch blocks useless).
So the expected behaviour of your code is that all the cells have a color depending on their ShimpDensity. and the cells without shrimps (ShrimpDenisty = 0) will have a color blue / cyan.
Cheers
Benoit