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

hey thanks but i have not much space for many components an why i cant use a P mosfet directly? or a transystor