By finely tuning the distance between nanoparticles in a single layer, researchers have made a filter that can change between a mirror and a window.