Butterflies use colour vision when searching for flowers. Unlike the trichromatic retinas of humans (blue, green and red cones; plus rods) and honeybees (ultraviolet, blue and green photoreceptors), butterfly retinas typically have six or more photoreceptor classes with distinct spectral sensitivities. The eyes of the Japanese yellow swallowtail (Papilio xuthus) contain ultraviolet, violet, blue, green, red and broad-band receptors, with each ommatidium housing nine photoreceptor cells in one of three fixed combinations. The Papilio eye is thus a random patchwork of three types of spectrally heterogeneous ommatidia. To determine whether Papilio use all of their receptors to see colours, we measured their ability to discriminate monochromatic lights of slightly different wavelengths. We found that Papilio can detect differences as small as 1-2 nm in three wavelength regions, rivalling human performance. We then used mathematical modelling to infer which photoreceptors are involved in wavelength discrimination. Our simulation indicated that the Papilio vision is tetrachromatic, employing the ultraviolet, blue, green and red receptors. The random array of three ommatidial types is a common feature in butterflies. To address the question of how the spectrally complex eyes of butterflies evolved, we studied their developmental process. We have found that the development of butterfly eyes shares its molecular logic with that of Drosophila: the three-way stochastic expression pattern of the transcription factor Spineless determines the fate of ommatidia, creating the random array in Papilio.Kentaro Arikawa graduated from Jiyu-Gakuen College Tokyo (natural science) and Sophia University graduate school Tokyo, (behavioural biology). As a first year graduate student, he found butterflies detect light by their genitals, and analysed the mechanism and function of this unique photoreceptive system for his PhD study. After being a biology professor at Yokohama City University for more than 20 years, he moved to SOKENDAI in 2006. He also served as a visiting fellow at the Australian National University (neurobiology), a research student at Mitsubishi-Kasei Institute of Life Science, a research fellow at NIH (visual science) and a researcher at JST-PRESTO.This review was presented at the symposium "Phototransduction and synaptic transmission" which took place at the Phototransduction UK workshop, Sheffield, 31 August -2 September 2016. C, head of a Spineless-knockout adult. The antennae did not extend (black arrowhead), and the spectral organization of the compound eye was modified as well.Abbreviations Cas9, CRISPR-associated protein-9 nuclease; CRISPR, clustered regularly interspaced short palindromic