EventIn Handling - eventsProcessed() - II
field SFColor currentColor 0 0 0
function colorIn(newColor, ts) {
// This method is called when a colorIn event is received
function eventsProcessed( ) {
if (currentColor[0] >= 0.5) // if red is at or above 50%