Step 1
Open up a new blank image and click the text tool. But instead of clicking OK click Transform to Selection!

Step 2
Now go to Filter >> Stylize >> Progressive Contour and make your settings however you want. Below are mine. Click OK and you’re done!