I've used masking tape for several items like this including canopy frames.
tape a piece to a hard surface, I use glass, paint it, then cut your desired width strips with a sharp blade. After installing your painted tape strip paint it with a clear coat like future or clear paint to seal it in. Cheers.