An international study has discovered how male peacock spiders showcase a rainbow signal to attract female counterparts. The spiders have abdominal scales with nanoscale diffraction grating structures, which split light into component colours at angles smaller than current manmade technologies. The findings could help reduce optical device size and improve spectral resolution, researchers said.