02-07-2023 10:11 AM
Hello, I would like to change the colour of the components of an array of booleans according to some numerical conditions, such as in the example. Color[4] property works for scalars, not for arrays, at least in the tests I have done.
Regardless the conditions, how to have for example 3 colours rather than the on.off 2 states colors?
Thank you very much
Mario
02-07-2023 10:57 AM - edited 02-07-2023 11:03 AM
Color is a property that is shared by all elements of an array, so for a boolean, you can have a max of two. Array elements can only differ in value, not properties.
You can use an array of colorboxes instead, here the color is the value!
Sometimes you could just process the data and display it in an intensity graph.
(Sorry, cannot look at you code at the moment).
02-07-2023 11:49 AM
Also, you don't have a 2D array anywhere.
Here's one possible solution (you can easily tweak the boundaries and even add more levels as needed):