dandiz are you trying to incorporate an RGB LED into an already exisiting system or do you want to play around with PWM?
well if u want to have fun with PWM you should check for codes at the PIClist http://www.piclist.com
but if all you want is to have some colorful indication then you should use RGB LEDs that have an internal oscillator. you just connect them like a usual LED and it just changes color.