Scripting: SetColor on individual elements of a sequence?
I've made a grid of square cells like this:
Now I want to run SetColor or SetFill on individual cells in the grid.
First I tried wrapping the Polygon expression above with SetColor[<polygon>, 0, 1, 0], but I guess SetColor can only be used in a script. Next I tried the following OnUpdate script for my grid to color the first cell Green.
When I update cellSize there's no change. No errors either. But if I change the code to color the whole grid green it works.
The UI doesn't seem to have any way to manually color individual cells either.
Is the problem that GeoGebra models each "object" as having no more than one color, and "objects" can't be composed of other first-class "objects"? If so, are there any plans to change this?
Short of manually drawing and coloring gridSize*gridSize cells, is there any way to color the cells independently?