Analyze TOP - get signal when whole screen goes one color

Hello! I am making a little interactive piece in TD using an xbox controller. It mainly involves moving colors around on the screen and controlling different effects with the buttons. What i am trying to do is when you move the toggles to completely cover the screen in one color for a signal to be sent in order to change something else. I am using the an analyze chop to get the maximum and the minimum pixel of either red green or blue or b/w and a logic chop that sends a signal for when both are greater than zero. I thought this would work to get a signal if i zoom in all the way on red or green or blue but something is not working properly. Anyone have an idea of how to get a signal when the screen goes entirely one color? and ideally more than just rgb? Thanks!

Hi,

This is an interesting puzzle. I think your overall approach is actually pretty sound. Using the analyzeTOP to get min/max values for the RGB input and then checking to see if they match.

I modified your approach a little here:

The main difference is that I’m reassembling the min/max rgb outputs into a pair of reorderTOPs, then running these through a compositeTOP set to ‘difference’. This outputs a single pixel top with the difference between all color channels. Passing this into the TOPtoCHOP and using a mathCHOP to merge the channels with the ‘Maximum’ operation and setting it to round up to the nearest integer seems to produce the True/False behavior you’re looking for.

edit:
should’ve read the analyzeTOP docs. The way to get a consolidated per channel min and max is to set the analyze channel parameter to RGBA Independent. This simplifies the network significantly:

Here’s a revised demo project:
colorMatchTrigger.toe (4.1 KB)

1 Like

Thank you so much! This helped a ton!