How to make a mood light with rgb led

i'm looking for a better processing code to control the led and i think i hae the oposit of the led used in the tutorial, what it is called?