Trying to build out a prototype which filters an array of items based on user input. But running into some problems when trying to filter out layers.
Attached is a quick prototype to represent this. When a user taps on a square, I want all squares that *don't* correspond in color to reduce in opacity. But all (besides the one tapped) are fading out. What am I doing wrong?