Well, often, it was just with a paintbrush and some glass ... The actors would be filmed on footage that blacked out the painted backdrop, and then filmmakers would combine the two exposures ...