To paint a gradient on a pipa, first prepare the instrument by cleaning it. Then, apply a base coat and let it dry. Next, use a gradient technique with two or more colors, starting from the darkest at the bottom and blending into lighter shades towards the top. Use thin layers and a fine brush to create a smooth transition. Once the gradient is dry, you can apply a clear coat for protection.