I am working with a 2x2 array that uses an input of 5 values, 0-4. Unfortunately this is messy. To be visually accessible to the needs of the user, I have to implement a boolean system. I was wondering if there was a way of using event structures and maybe different colored booleans to create the necessary 5 values.
A boolean can only be on or off, so there is no way to handle multiple colors. Now with handling events, you could read the value of your numeric array and adjust the colors of the boolean, however, these colors would apply for all of the booleans and not individual ones.
If you can work with clusters, then you should be able to get a reference to each boolean in the cluster and set the color accordingly.
You can also use a picture ring, which will make it look like a multi-colored boolean and you still work with values 0-4. This you can put in an array. You can use the array in event structures and compare the new value to the old to determine the element which changed.