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

So something like this then:-
RGB Common Cathode driver.jpg

RGB Common Cathode driver.jpg