You can learn here a color full text effect, this example.
New File: Create a new file with any size.
Write Text: Choose any color and Horizontal type tool (T key) and write text as given below.
Effects: Go to Layer Menu > Layer Style > Inner Shadow, Color Overlay, Bevel and Emboss. Use same settings of them.
The fill will be as.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.