Assign numerical value to a grid of colored squares?

Hi Everyone,

I have a grid of rectangles to which random colors are projected. I’d like to see how versioning can give me different values but running into trouble. In short, i’d like to:

  1. Assign a value to each color (square) for a total output performance figure.
  2. Show a corresponding circle at each point relative to the value of adjacent square.

Any help would be greatly appreciated, Thanks!

CPT_District_Network_display.3dm (19.6 MB)
District_Network_display.gh (47.3 KB)

The circles have up to four adjacent squares. Are you looking for an average? Maximum? Median?

How do you want to assign the initial values? Is it just a list of numbers in the same order as the squares?