Hold down the fire button and drag your crosshair over each structure piece to paint the Enabled regions in the color applied to the Spray Painter. The dye will slowly be expended as you are spraying, and you can see how much paint you have left by looking at the grey bar underneath the Spray Painter in your inventory.