Scientists use a computational method to calculate the optical properties of two-dimensional materials. Their work promises to simplify the process of identifying the right materials for next-generation optoelectronic devices.