Across the United States and around the world, cities are turning gray streetscapes, dark underpasses, and drab public plazas into giant canvasses for artists—and entire communities—to enliven with paint.