Processing and Arduino: how to change color according to the status of a digital input?

Hello,

If you are exploring the examples that come with the Processing IDE take a look at this topic:

:)