Distinguish between RGB LED common anode and common cathode
The best way to distinguish between a common cathode and common anode RGB LEDs is using a multimeter.
Put you multimeter is in continuity mode.
Place the red multimeter tip on the longest LED lead. Then, place the black tip on one of the other leads.
If the LED lights up, this means you have a common anode LED.
On the other hand, if you have a common cathode RGB LED, you need to placed the black tip on the longest lead, and the red tip on one of the other leads.