By harnessing electron-beam patterning to control the swelling and contraction of a soft polymer, researchers created a material that can change both color and texture on demand.