They're painted in the factory, by factory workers, with brushes.
Some companies have started using dot matrix "painting," which is basically done by blasting color out of a specialized machine, but you can tell when something is painted that way because up close you can see the individual...