//Fill in granule activations
for (int y=0; y<this.numColumns; y++)
{
for (int x=0; x<myNetwork.getGranulesPerColumn(); x++)
{
Granule gc = this.myNetwork.getColumn(y).getGranules().get(x);
if (gc != null && gc.isActive())
{
g.setColor(Color.GREEN);
g.fillOval(COL_START_X+(COL_OFFSET*y), COL_START_Y+(GRANULE_RADIUS*x), GRANULE_RADIUS, GRANULE_RADIUS);
}
else if (gc != null && !gc.isActive())
{
g.setColor(Color.RED);
g.fillOval(COL_START_X+(COL_OFFSET*y), COL_START_Y+(GRANULE_RADIUS*x), GRANULE_RADIUS, GRANULE_RADIUS);
}
else