Color tracking. How to detect colors clashing?
              in 
             Core Library Questions 
              •  
              9 months ago    
            
 
           
             Hi. 
            
             
            
            
 
            
           
             I'm working on a game as part of a school assignment, the basics is that it's a fighting game in real life. What I need to do is track two colors (or possibly more but two will do for now) and I need to have an image appear on screen when two colors collide or clash (when their x and y coordinates are the same basically). I have been away from programming for a couple of years and could use some help with this. 
            
            
             I'm using the following code from the "Learning Processing" book to track colors, which works fine but I have no clue how to add this last part that I described above.
             
             
             
 
           CODE: http://www.learningprocessing.com/examples/chapter-16/example-16-11/
             Any help is appriciated!
 
              
              1  
            
 
            
 
 
          