Step 1: Create a new file and fill the layer background with black
Step 2: Create a new layer and select the corresponding brush

Step 3: Create a new layer, select the gradient tool, and select a colorful gradient color

Step 4: Adjust the blending mode to color and adjust the transparency