How does the LED RBG led work?

Good evening, everybody. I’m trying to figure out how the RGB led works but I can’t figure it out. Who would be so good and kind to explain to me how it works and if after can get me a code (IDE program) with all the explanations?
I mean the LEDs with four cables. I don’t understand just how they work
Thanks again and good evening. :slight_smile:

OK, first you need to explain what you mean when you say "RGB LED", because there are many different sorts of them.

?

Most RGB LEDs have four terminals, albeit some have six.

Give us a Web link to the one you have.