Control RGB LEDS (common cathode) with a Mosfet or a transistor

avr_fred:
As GM said, no, it will not work as drawn. Start by changing the N channel device shown to P channel, add a gate pull-up, a series resistor and an led and you've got a simulation starting point.

Which is exactly the circuit I posted in the first place.