Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Color tracking. How to detect colors clashing?

$
0
0
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!

Viewing all articles
Browse latest Browse all 1768

Trending Articles