This sort of a sketch has several steps:
1) Get a webcam feed working.
2) Learn about the pixels array and how colors work.
2) Learn about the pixels array and how colors work.
3) Decide what you mean by "red" and "green".
4) Do some looping.
Let's start at the top. Do you have a working webcam, and can you display it's image inside a sketch?
4) Do some looping.
Let's start at the top. Do you have a working webcam, and can you display it's image inside a sketch?