I have a grid of "culture" agents, each one has a different color based on features of the culture.
I don't know how to portray a grid of agents (here - class Culture) in which each agent can have it's own color.
setPortrayalForAll() colors all of the agents the same. I don't know how to
In the code segment below, getColorIndex() could access the color for each agent in a Bag. Is this the general idea?
SparseGridPortrayal2D individCulturePortrayal = new SparseGridPortrayal2D()