Article | Open | Published:

# Rainbow peacock spiders inspire miniature super-iridescent optics

## Abstract

Colour produced by wavelength-dependent light scattering is a key component of visual communication in nature and acts particularly strongly in visual signalling by structurally-coloured animals during courtship. Two miniature peacock spiders (Maratus robinsoni and M. chrysomelas) court females using tiny structured scales (~ 40 × 10 μm2) that reflect the full visual spectrum. Using TEM and optical modelling, we show that the spiders’ scales have 2D nanogratings on microscale 3D convex surfaces with at least twice the resolving power of a conventional 2D diffraction grating of the same period. Whereas the long optical path lengths required for light-dispersive components to resolve individual wavelengths constrain current spectrometers to bulky sizes, our nano-3D printed prototypes demonstrate that the design principle of the peacock spiders’ scales could inspire novel, miniature light-dispersive components.

## Introduction

Controlling light through photonic micro- and nanostructures can transform human technology, including communications, sensing, security, and computing1,2,3. Biogenic photonic nanostructures have high translational potential4 and reveal a diverse array of structural colour production mechanisms in plants and animals, including spiders5,6,7,8,9,10,11,12. In particular, some Australian peacock spiders can display extremely angle-dependent full-spectrum iridescence with high purity13.

Iridescent integumentary colour patterns in plants and animals typically span only narrow segments of the visible wavelength range. For example, although its iridescent colour shifts from blue to violet, depending on the angle of light incidence, wings of Morpho butterflies are mostly blue14,15. The few organisms that exhibit a rainbow pattern, such as Bronzewing pigeons (Phaps spp.), do so using spatially segregated nanostructures along each feather, creating a gradient of colours from blue to red16. Thus, the colour of any particular point on the feather does not shift between discrete hues with change in viewing angle. Other structurally coloured feathers usually shift between only a few hues17,18,19 and do not cover all colours in the visible spectrum. In contrast, the colour of abdominal scales from males of two miniature Australian peacock spiders, Maratus robinsoni (Supplementary Fig. 1a) and M. chrysomelas (Supplementary Fig. 1b) change from red to green to violet with slight movements (Fig. 1a, c, and https://youtube/eGS4JdewROU). These two species of peacock spiders (Maratus spp.) raise and wiggle their abdomens toward potential mates during courtship to display every colour across the entire visible spectrum (Supplementary Fig. 1), making this the first true rainbow-iridescent signal known in animals13.

We hypothesize that the unique rainbow-iridescence in M. robinsoni and M. chrysomelas is produced by specialized abdominal scales that function as three-dimensional (3D) reflective diffraction grating structures. Two-dimensional (2D) diffraction grating-like structures are not as rare as previously thought, but are still uncommon in nature, and occur only in a handful of extant and fossil species9,20,21,22,23, including plants24,25,26. Moreover, these previously described 2D diffraction gratings are likely epiphenomena that do not function in signalling, and are not then products of natural selection for optical functions22,25. Rainbow-iridescence is clearly a visual courtship signal in peacock spiders (Supplementary Fig. 1)27. Here, we first quantitatively characterize the colour and nanostructure of both peacock spider species using scanning and transmission electron microscopy (SEM/TEM), hyperspectral imaging (HSI), and imaging scatterometry. We then use analytical and finite-element optical simulation to identify the mechanism of colour production in the scales. Finally, we provide validation of the mechanism using bioinspired, actual-size physical prototypes via two-photon nanolithography. Our study identifies the mechanisms by which miniature Australian peacock spider actively display isolated wavelengths within visible spectrum during their courtship. This result is significant both because it is the first insight into this mechanism and because it could provide inspiration for the development of miniature light-dispersive components. By understanding biological design principles and emulating them through engineering, our research may allow light-dispersive components to perform under irradiances, and millimetre length scales, not possible before.

## Results

### 3D airfoil-shaped grating

M. robinsoni and M. chrysomelas have two types of visually distinct abdominal scales: rainbow-iridescent scales and velvet black scales (Fig. 2a, b and Supplementary Fig. 1). These scales show strikingly different morphologies: the black scales are brush-like and randomly oriented (Fig. 2c, d black arrowhead, Supplementary Fig. 2), while the rainbow-iridescent scales are more orderly aligned, cling to the cuticle surface and have bulky 3D shapes (Fig. 2c, d white arrowhead). Closer observation of the iridescent scales shows parallel grating structures on each individual scale for both spider species (Fig. 2e, f). The gratings are more regularly spaced on the scales of M. robinsoni (Fig. 2g) than those of M. chrysomelas (Fig. 2h). TEM on the transverse section of the iridescent scales reveals airfoil-shaped profiles (i.e. the curvatures are not concentric arcs; Fig. 2i, j). The surfaces of these airfoil-shaped scales are covered by prominent binary-phase grating structures with depths ~ 500 nm or more, and periods between 500 and 800 nm. Images of TEM sections (Fig. 2i, j) agree well with SEM images (Fig. 2e–h) and show the spacing of the gratings is more regular on the scales of M. robinsoni than that on the scales of M. chrysomelas (Table 1 and Supplementary Fig. 3). In addition, the gratings are asymmetrical between the two sides of the airfoil-shaped scales of M. robinsoni, with one side thinner and more densely distributed than the other, while the gratings are evenly, and more randomly, distributed on both sides of M. chrysomelas scales (Table 1).

### Separating the full visible spectrum over small angles

The unique grating configuration of each M. robinsoni scale disperses the visible spectrum over a small angle, such that at short distances, the entire visible spectrum is resolved, and that a static microscopic rainbow pattern distinctly emerges (Fig. 3a). Hyperspectral analyses also demonstrate an array of full-spectrum reflectance spectra from the iridescent scales of both M. robinsoni (Fig. 3b) and M. chrysomelas (Supplementary Fig. 4a). On the basis of the SEM/TEM images, we hypothesize that the acute angle-sensitive rainbow-iridescence of M. robinsoni and M. chrysomelas result from the interaction of the surface nanograting and the microscopic airfoil-shape of the scales.

To evaluate our hypothesis, we design three different grating configurations, all using the same surface nanograting with a period of 670 nm (thickness: 170 nm, spacing: 500 nm), and a depth of 300 nm, but with different shapes/geometries: the first configuration is a conventional 2D grating (flat, Fig. 4a); the second configuration is a pentagonal prism that roughly resembles the shape of the scales with flat surfaces and abrupt joints (prism, Fig. 4b); lastly the third configuration is a spider scale-mimic structure, with nanogratings on the two lenticular curved (i.e., with concentric convex curvature) sides (foil, Fig. 4c). For the pentagonal prism configuration, the nanogratings are on the four upward-facing surfaces except for the base and the sides (Fig. 4b). This design is partly inspired by the iridescence-enhancing boomerang-shaped feather barbules of the bird-of-paradise Parotia lawesii 17,18.

We fabricate our designs using two-photon nanolithography, and verify the structure of the final products using SEM (Fig. 4e–g) and their optical output using hyperspectral imaging and scatterometry. These analyses demonstrate that only the foil grating (Fig. 3c, d) successfully reproduced the colour pattern from the spider scales (Fig. 3a, b), whereas the flat (Supplementary Fig. 4b) and prism gratings (Supplementary Fig. 4c) did not.

We further simulate the angle-dependent scattering spectra of the designed structures using finite-element modelling (FEM) and plot the simulated reflectance spectra of the three designed structures against their scattering/viewing angles (Fig. 5). The foil grating appears to show all the colours in a rainbow simultaneously in many simulated angles, but the rainbow pattern shows up especially well at three particular angles (Fig. 5a). This agrees well with the properties of the iridescent spider scales (Fig. 3a, b, Supplementary Fig. 4a) and the 3D printed foil grating (Fig. 3c, d). Nevertheless, the flat grating shows a pure colour at each individual viewing angle, and can display most colours sequentially from 40° to 60° (Figs. 5b and 6c, g). By contrast, the prism grating cannot show either the rainbow pattern or the high purity colours (except for exactly 0°) (Fig. 5c). Again, these results matche well with the results of hyperspectral analyses with the 3D printed flat (Supplementary Fig. 4b) and the prism (Supplementary Fig. 4c) gratings.

### Reversed diffraction order

Imaging scatterometry further supports the detailed mechanism of the M. robinsoni and M. chrysomelas diffraction gratings (Fig. 6a, b). The order of the diffraction pattern of the spider scales is reversed relative to a conventional 2D (flat) grating (i.e., redblue rather than bluered, Fig. 6a, b vs. c). The scatterograms of the prism (Fig. 6d) and foil (Fig. 6e) gratings also show reverse-ordered diffraction patterns. This is because the surface gratings are oriented vertically on the airfoil-shaped scales, as previously reported in Pierella butterflies28,29.

The FEM simulated angle-dependent scattering spectra of the designed structures are shown in Fig. 6f–i. To keep the simulated results in accordance with experimental results, we consider a plane-wave Gaussian pulse entering at the normal incident angle, and calculate the angle-dependent light scattering. The results of FEM optical simulation closely agree with the scatterograms showing reverse-ordered diffraction pattern for the prism (Fig. 6h), and foil (Fig. 6i) gratings.

The flat grating produces a discrete diffraction profile (Fig. 6g) allowing only three diffraction orders (−1, 0, 1) in the visible spectrum (400 ~ 700 nm). This is well predicted by the grating equation (Supplementary Note 1)30:

$$m_{\mathrm{h}}\lambda _{\mathrm{h}} = d_{\mathrm{h}}({\mathrm{sin}}\theta _{\mathrm{i}} + {\mathrm{sin}}\theta _{\mathrm{s}})$$
(1)

Here, m h is the diffraction order (or spectral order), which is an integer for a horizontal period of d h, and θ i, θ s are the incident and scattering (diffraction) angles, respectively. The reverse diffraction order can be explained by implementing the vertical grating equation and considering an exact vertical orientation of the surface grating to the surface normal28,29:

$$m_{\mathrm{v}}\lambda _{\mathrm{v}} = d_{\mathrm{v}}({\mathrm{cos}}\theta _{\mathrm{i}} + {\mathrm{cos}}\theta _{\mathrm{s}})$$
(2)

At normal incidence of light (θ i =0), the diffraction wavelength peak for a specific order varies proportionally to the cosine of the diffraction angle, which explains the curve-shaped reverse order diffraction profiles in Fig. 6h, i. To understand the microscopic shape effect, we further modified the vertical grating equation for a triangular horizontal grating. Considering the top angle of the triangular grating α, the vertical grating equation is modified into:

$$m_{\mathrm{v}}\lambda _{\mathrm{v}} = 2d_{\mathrm{v}}{\mathrm{cos}}\left( {\alpha {\mathrm{/}}2} \right)({\mathrm{cos}}\theta _{\mathrm{i}} + {\mathrm{cos}}\theta _{\mathrm{s}})$$
(3)

The superposition of Eq. 1 with Eq. 2 and Eq. 3 is plotted in Supplementary Fig. 5a and b, respectively. The higher order diffraction wavelength peak appears for a scattering angle θ s  = 0 at normal incidence of light in the red spectral region due to the vertical surface grating period d v (Supplementary Fig. 5b). This explained the red colour of the reflection at the crest of the spider scales as well as the biomimetic (foil) prototype. Along the gradient of the scales, with increasing scattering angle, the colour changes from red to blue in an acute manner as seen in Fig. 3a. The abrupt microscopic shape of the prism grating might be the cause of the anomalous weak distribution of the diffraction pattern. However, the microscopic shape effect allows a large number of horizontal and vertical mode superposition in foil and prism gratings, thereby improving the diffraction efficiency (i.e., total diffracted power (P) over total incident power (P 0)).

### High resolving power

The detailed fine features in both the experimental and simulated scattering profiles of the foil grating are clearly evident in Fig. 6e, i, respectively. Both prism and flat gratings show a coarser pattern in the scattering profiles than the foil grating (Fig. 6c, d, g, h), despite the fact that only the shape differs between the three types of gratings. These fine scattering features of the foil grating can be explained by its high resolving power (the ability to separate adjacent spectral lines of average wavelength λ) and low angular dispersion properties. The curved surfaces of the foil grating accumulate higher numbers of grooves under specific illumination conditions, in contrast to the flat grating. As the resolving power of a diffraction grating is proportional to the illuminated number of grooves and the periodicity30, the microscopic shape provides an advantage for achieving high resolving power. To be precise, the microscopic triangular shape increases the number of grooves by a factor of cosec(α/2). That results in two times the number of effective grooves when α = 60° for a fixed illumination spot compared to a flat grating with the same period. Moreover, according to Eq. 3, the microscopic triangular shape reduces the angular dispersion (Note: not to be confused with chromatic dispersion, see Supplementary Note 2) for any order m and period d v by a factor of 2cos(α/2). This reduces the angular spread of a spectrum of any order m. Therefore, the smaller angular spread of the foil grating enhances its “degree of iridescence” (here, we define the “degree of iridescence” as the change in reflectance peak wavelength with the same amount of scattering angle variation) compared to regular binary phase gratings.

We further derived the vertical grating equation for the biomimetic foil grating from Eq. (3) by approximating the ellipsoidal curvature of the foil shape:

$$m_{\mathrm{v}}\lambda _{\mathrm{v}} = ({\mathrm{\pi /}}\surd 2)d_{\mathrm{v}}{\mathrm{cos}}\left( {{\it{\alpha }}{\mathrm{/}}2} \right)({\mathrm{cos}}\theta _{\mathrm{i}} + {\mathrm{cos}}\theta _{\mathrm{s}})$$
(4)

According to Eq. 4, the curvature of the foil grating further increases the resolving power and decreases the angular spread by another ~ 10% (π/√8) when comparing the triangular grating with the same top angle (Eq. 3). Overall, the foil grating prototype is about twice as iridescent [(π/√2)cos(α/2), α = 56°, the top angle of the foil prototype] as a conventional 2D grating of the same period (flat). Hyperspectral analyses show that natural spider scales (Fig. 3b and Supplementary Fig. 4a) have an even higher resolving power than the foil prototype (Fig. 3d), suggesting that some aspect of the nanostructure (e.g. airfoil curvature) remains to be replicated and integrated into the next generation of prototypes to provide optimal resolving power closer to the natural system.

Due to the large period (~ 10 μm) of the microscopic grating, the angular separation between adjacent diffraction orders and the free spectral range of each individual order is small (Supplementary Fig. 6). However, introduction of the small-period (670 nm), surface vertical nanogratings modulates the horizontal diffraction orders and increases the diffraction efficiency and resolving power (Fig. 6i). This further demonstrates that resolving power increases due to the nanogratings on the microscopic curved surfaces, rather than simply angle and/or orientation17,18 like that in the prism grating (Fig. 6h). The combination of vertical and horizontal grating effects in iridescent scales of M. robinsoni and M. chrysomelas provides saturated and intense diffraction outputs relative to the previously described natural example of a vertical grating in Pierella butterflies28 (Supplementary Note 3). Due to the large horizontal period of Pierella butterfly scales ( > 50 μm), the diffraction pattern is dominated by the vertical nanograting. We note that the banded pattern shown in the scatterograms of the prism (Fig. 6d) and foil (Fig. 6e) gratings is an artifact of the nanolithography production that results in the superposition of wavelengths (Supplementary Note 4). Since natural spider iridescent scales are partially disordered and not aligned in parallel (i.e., reduction in micrograting effect) (Fig. 2c, d) in the same manner as the synthetic ones (Fig. 4f, g), the banded pattern is not observed in the scatterograms of iridescent spider scales and the scattering pattern is mostly dominated by the vertical grating effect from the airfoil-shaped spider scales (Fig. 6a, b).

### Dark melanosome background

We previously detected eumelanin in the black scales of M. robinsoni and M. chrysomelas using Raman spectroscopy31. TEM images of the M. robinsoni black scale sections show that eumelanin is diffusely and heterogeneously deposited in the black scales, because areas of different electron densities (shown in different levels of greyscale) and granular depositions were observed in the TEM micrographs of the scales (Supplementary Fig. 2b&c). Melanosomes are also observed in the hypodermis under the abdominal cuticle for both M. robinsoni (Fig. 7a) and M. chrysomelas (Fig. 7b), as previously reported in M. splendens and M. anomalus 32. The dense layer of melanosomes likely functions to enhance the colour contrast.

## Discussion

We demonstrate here that the unique rainbow-iridescence of M. robinsoni and M. chrysomelas is produced by specialized 3D airfoil-shaped nanograting scales. These scales increase the resolving power of the diffraction grating through the synergistic effects of their vertically orientated surface nanogratings and the microscopic curvature of their airfoil-shape.

Contrast perceived by a visual system increases by accompanying black scales and an underlying black basal cuticle layer that decrease background scattering and increase the saturation of the structural colour, thus making the colour more conspicuous33,34,35. In addition, a regular grating period on the rainbow-iridescent scales of M. robinsoni further enhances iridescence (Fig. 1a). In contrast, the iridescence of M. chrysomelas (Supplementary Fig. 1b) is not as saturated due to its more irregular grating period36. In short, an innovative combination of regular surface nanogratings, airfoil-shaped microcurvatures, and background absorption mechanisms largely explain the striking iridescence observed in M. robinsoni.

It is unlikely that M. robinsoni and M. chrysomelas can discern the static microscopic rainbow patterns (Fig. 3a) of individual scales (Supplementary Note 5). However, the eyes of jumping spiders (Salticidae) have a high acuity (i.e., high spatial resolution)37, and peacock spiders (Maratus spp.) likely possess tetrachromatic colour vision (i.e., high spectral resolution, personal communication with N.I. Morehouse; University of Cincinnati), so female peacock spiders are likely able to perceive the displayed colours in the form of dynamic rainbow iridescence. Male peacock spiders court females at a distance of a few centimetres, and raise and wiggle their abdomens to display the abdominal colours to the females (Supplementary Fig. 1). Therefore, the iridescent abdominal scales of M. robinsoni and M. chrysomelas produce the first known rainbow-iridescent signal in nature, and are likely a direct product of sexual selection through female choice. While functional hypotheses remain to be tested, the iridescence could enable mate recognition, provide females with honest information about male quality, or be the product of runaway selection38.

Advanced computer-aided design allows construction of optical components that have a complex and previously unimaginable geometry/topology with novel functionality, high efficiency, and a compact footprint39. However, the solutions are local optimums that are largely confined by the initial input. On the other hand, nature provides unique and unexpected solutions for the design of advanced devices40,41,42,43. The design of high-efficiency light-extracting surfaces inspired by fireflies44,45,46 show how these two seemingly different approaches act in synergy. Here, we identify the rainbow-iridescent scales of M. robinsoni and M. chrysomelas as a source of inspiration for designing miniature light-dispersive components with ultrahigh resolving power. Further improvement and optimization of miniature light-dispersive designs for specific applications can be made by incorporating computer-aided optical design processes. This powerful bioinspired approach would allow engineers to design and develop optical devices, especially spectrometers, with at least 50% smaller length scale (i.e., ~ an order of magnitude reduction in volume) for applications where fine-scale spectral resolution is required in a very small package, notably instruments on space missions, or wearable chemical detection systems. Therefore, a miniature spectrometer and light dispersive components will have significant impact to fields ranging from life sciences and biotechnology to material sciences and engineering.

## Methods

### Spider collection

M. robinsoni specimens were collected on 22 October 2012 by Peter Robinson at the type locality near Newcastle, New South Wales (32° 59′ 50.42″ S, 151° 42′ 17.22″ E)47. M. chrysomelas (Simon, 1909) were collected by Jürgen Otto on October 2013 at several locations near Esperance in southwestern Western Australia47. M. chrysomelas is widespread in Australia, occurring in the east, west, central parts and the tropical north47,48. All specimens were preserved in 70% ethanol. Details of both species' distribution can be found in references13,47.

### Light microscopy

Specimens were observed using a 20/30 PVTM UV–visible-NIR microspectrophotometer (CRAIC Technologies, Inc.) with a 50× glass objective lens (numerical aperture (N.A.) = 0.7, free working distance = 1.1 mm, EC Epiplan 442060-9900-000, Carl Zeiss Microscopy, LLC.) for better brightfield colour imaging with extreme chromatic correction.

### Scanning electron microscopy

To investigate the surface morphology of peacock spider scales, opisthosoma cuticle fragments were attached to sample stubs using carbon tape. Spider samples were sputter-coated with gold-palladium for 3 min under 20 mA, 1.4 kV and observed under a scanning electron microscope (JEOL 7401, Japan Electron Optics Laboratory Co. Ltd.) with 8 mm operating distance and 5 kV accelerating voltage.

### Transmission electron microscopy

Opisthosoma cuticle fragments were dehydrated, and washed, followed by epoxy resin infiltration and embedding based on previously reported protocol(s)8. The cured epoxy block was trimmed with a Leica EM TRIM2 (Leica Microsystems) and microtomed into 80 nm thin sections using Leica EM UC6 (Leica Microsystems) with a DiATOME diamond knife (Electron Microscopy Sciences, Hatfield, PA, USA). Sections were mounted onto 100 mesh copper grids (EMS FCF100-Cu, Electron Microscopy Sciences) and observed under a transmission electron microscope (JSM-1230, Japan Electron Optics Laboratory Co. Ltd., Akishima, Tokyo, Japan) without sample contrast staining for visualization.

### Two-photon nanolithography

We used two-photon polymerization (TPP) nanolithography to fabricate the designed engineering prototypes (flat, prism and foil) for experimental investigations. The 3D laser lithography system (Photonic Professional GT, Nanoscribe GmbH, Germany) utilized a dip-in configuration with a 63×, 1.4 N.A. oil immersion objective lens (Zeiss, Germany) to focus the laser beam. An acrylic-based monomer liquid photoresist optimized for TPP applications (n r = 1.52, IP-Dip, Nanoscribe GmbH) was drop-casted on a silicon wafer (500 μm thick with an oxidation layer of 3000 Å) and the objective lens immersed directly in the photoresist. A femtosecond laser (centre wavelength of 780 nm, pulse width of 100 fs, repetition rate of 80 MHz, and maximum power of 150 mW) was used as the irradiation source. A laser power of 25 mW was used in the TPP process and was controlled by an acousto-optic modulator. 50 mm/s writing speed was controlled by a galvo-mirror scanner43. Each design was fabricated to a 135 × 135 μm2 area. The fabricated structures were then characterized using a Hitachi S-4700 SEM (Hitachi High-Technologies Corp., Tokyo, Japan), sputter-coated with 5 nm of chromium. The imaging voltage was kept low (<10 kV) to avoid damaging the structures.

### Hyperspectral Imaging

A PARISS® hyperspectral imaging system (LightForm, Inc., Asheville, NC) was used to provide spatial mapping of the spectral output from the samples when normally illuminated with white light. Each sample was imaged without a coverslip for structure and spectral mapping. For structure 20% of the light output was imaged using a monochrome QIClick camera (QImaging); for spectral reflectance measurements, 80% of the light output was collected using a 100× 0.9 N.A. air objective (giving ≤ 0.5 µm spatial resolution) on a Nikon Eclipse 80i microscope with a PARISS® spectrometer utilizing a Retiga 2000DC CCD camera (QImaging). A 50 µm slit was used for window collection, and radiometric calibration was done with a Hg+/Ar+ lamp (LightForm Inc.), with spectral resolution measured better than 2 nm. A silver mirror (Thorlabs) was used as a reflectance reference for all measurements. Hyperspectral mapping was performed using a library of selected spectra with a minimum correlation coefficient (MCC) of 0.99 used as a discrimination factor to identify and map common spectra. All spectra were smoothed, normalized, and plotted using GraphPad Prism statistical software (GraphPad Software, Inc., La Jolla, CA, USA). The colours of the curves were estimated based on the “spec2rgb” function in R script “pavo”49.

### Imaging scatterometry

The spatial reflection characteristics of the iridescent spider scales and 3D printed grating designs were studied with an imaging scatterometer to visualize the diffraction patterns that they produced. The samples were glued to the tip of a glass micropipette, thus allowing us to position them in the first focal point of the ellipsoidal mirror of the imaging scatterometer50. Scatterograms were obtained by focusing a white light beam with narrow aperture (< 5°) onto at a small circular area (diameter ~ 13 µm) of the object, and the spatial distribution of the far-field scattered light was then monitored.

### Finite-element optical simulation

The finite-element method was used to numerically simulate the variable-angle scattering profiles of the designed grating structures (flat, prism and foil). The Electromagnetic Waves, Frequency Domain interface of the commercial simulator COMSOL Multiphysics® was applied to individual geometry that consists of one unit cell of the gratings (Fig. 4a-d)51. Diffraction from the periodic micro- and nanostructures was simulated in two dimensions by utilizing Port conditions and S-parameters. The refractive index of the dielectric gratings was considered dispersion-less: n r = 1.52. On either side of the unit cell, the Periodic Condition boundary condition with Floquet periodicity was used (Fig. 6f). This condition states that the solution on one side of the unit cell equals the solution on the other side multiplied by a complex-valued phase factor. The phase shift between the boundaries was evaluated from the perpendicular component of the wave vector.

The top and the bottom of the simulation unit cell were bounded by perfectly matched layers (PML). These boundary layers absorb any incident waves, preventing artifacts that could result from spurious interferences with re-entrant waves. Port boundary conditions were used to release the incident wave and to absorb the zeroth order (specular) reflected and transmitted waves. The input to each periodic port was an electric field amplitude vector with defined unit intensity. To assess angle-dependent scattering, the diffracting structures were rotated from −60° to 60° keeping the angle of light incidence at normal and zeroth order reflectance was calculated using S-parameters for wavelengths of 400–700 nm.

### Data availability

All relevant data are available from the authors upon request.

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## References

1. 1.

Yue, Y. et al. Mechano-actuated ultrafast full-colour switching in layered photonic hydrogels. Nat. Commun. 5, 4659 (2014).

2. 2.

Burgess, I. B., Lončar, M. & Aizenberg, J. Structural colour in colourimetric sensors and indicators. J. Mater. Chem. C 1, 6075–6086 (2013).

3. 3.

Zhang, W. et al. Highly efficient perovskite solar cells with tunable structural color. Nano Lett. 15, 1698–1702 (2015).

4. 4.

Dumanli, A. G. & Savin, T. Recent advances in the biomimicry of structural colours. Chem. Soc. Rev. 45, 6698–6724 (2016).

5. 5.

Stavenga, D. G., Otto, J. C. & Wilts, B. D. Splendid coloration of the peacock spider Maratus splendens. J. R. Soc. Interface 13, 20160437 (2016).

6. 6.

Foelix, R. F., Erb, B. & Hill, D. E. in Spider Ecophysiology (ed. Nentwig, W.) Ch. 24 (Springer Berlin Heidelberg, 2013).

7. 7.

Simonis, P., Bay, A., Welch, V. L., Colomer, J.-F. & Vigneron, J. P. Cylindrical Bragg mirrors on leg segments of the male Bolivian blueleg tarantula Pamphobeteus antinous (Theraphosidae). Opt. Express 21, 6979–6996 (2013).

8. 8.

Hsiung, B. K., Deheyn, D. D., Shawkey, M. D. & Blackledge, T. A. Blue reflectance in tarantulas is evolutionarily conserved despite nanostructural diversity. Sci. Adv. 1, e1500709 (2015).

9. 9.

Parker, A. R. & Hegedus, Z. Diffractive optics in spiders. J. Opt. A: Pure Appl. Opt. 5, S111–S116 (2003).

10. 10.

Land, M. F., Horwood, J., Lim, M. L. M. & Li, D. Optics of the ultraviolet reflecting scales of a jumping spider. Proc. Biol. Sci. 274, 1583–1589 (2007).

11. 11.

Ingram, A. L. et al. Structural origin of the green iridescence on the chelicerae of the red-backed jumping spider, Phidippus johnsoni (Salticidae: Araneae). Arthropod Struct. Dev. 40, 21–25 (2011).

12. 12.

Ingram, A. L. et al. Characterization of the green iridescence on the chelicerae of the tube web spider, Segestria florentina (Rossi 1790) (Araneae, Segestriidae). J. Arachnol. 37, 68–71 (2009).

13. 13.

Otto, J. C. & Hill, D. E. Notes on Maratus Karsch 1878 and related jumping spiders from Australia, with five new species (Araneae: Salticidae: Euophryinae), version 2. Peckhamia 103.2, 1–82 (2012).

14. 14.

Vukusic, P., Sambles, J. R., Lawrence, C. R. & Wootton, R. J. Quantified interference and diffraction in single Morpho butterfly scales. Proc. Biol. Sci. 266, 1403–1411 (1999).

15. 15.

Kinoshita, S., Yoshioka, S. & Kawagoe, K. Mechanisms of structural colour in the Morpho butterfly: cooperation of regularity and irregularity in an iridescent scale. Proc. Biol. Sci. 269, 1417–1421 (2002).

16. 16.

Xiao, M., Dhinojwala, A. & Shawkey, M. D. Nanostructural basis of rainbow-like iridescence in common bronzewing Phaps chalcoptera feathers. Opt. Express 22, 14625–14636 (2014).

17. 17.

Stavenga, D. G., Leertouwer, H. L., Marshall, N. J. & Osorio, D. Dramatic colour changes in a bird of paradise caused by uniquely structured breast feather barbules. Proc. Biol. Sci. 278, 2098–2104 (2011).

18. 18.

Wilts, B. D., Michielsen, K., De Raedt, H. & Stavenga, D. G. Sparkling feather reflections of a bird-of-paradise explained by finite-difference time-domain modeling. Proc. Natl Acad. Sci. USA 111, 4363–4368 (2014).

19. 19.

Yin, H. et al. Iridescence in the neck feathers of domestic pigeons. Phys. Rev. E 74, 051916 (2006).

20. 20.

Tan, T., Wong, D. & Lee, P. Iridescence of a shell of mollusk Haliotis glabra. Opt. Express 12, 4847–4854 (2004).

21. 21.

Parker, A. R. A geological history of reflecting optics. J. R. Soc. Interface 2, 1–17 (2005).

22. 22.

Seago, A. E., Brady, P., Vigneron, J. P. & Schultz, T. D. Gold bugs and beyond: a review of iridescence and structural colour mechanisms in beetles (Coleoptera). J. R. Soc. Interface 6, S165–S184 (2009).

23. 23.

Dhillon, D. S. et al. Interactive diffraction from biological nanostructures. Comput. Graph. Forum 33, 177–188 (2014).

24. 24.

Whitney, H. M., Kolle, M., Alvarez-Fernandez, R., Steiner, U. & Glover, B. J. Contributions of iridescence to floral patterning. Commun. Integr. Biol. 2, 230–232 (2009).

25. 25.

van der Kooi, C. J. et al. Iridescent flowers? Contribution of surface structures to optical signaling. New Phytol. 203, 667–673 (2014).

26. 26.

Vignolini, S. et al. The flower of Hibiscus trionum is both visibly and measurably iridescent. New Phytol. 205, 97–101 (2015).

27. 27.

Girard, M. B., Kasumovic, M. M. & Elias, D. O. Multi-modal courtship in the peacock spider, Maratus volans (O.P.-Cambridge, 1874). PLoS ONE 6, e25390 (2011).

28. 28.

Vigneron, J. P. et al. Reverse color sequence in the diffraction of white light by the wing of the male butterfly Pierella luna (Nymphalidae: Satyrinae). Phys. Rev. E. 82, 021903 (2010).

29. 29.

England, G. et al. Bioinspired micrograting arrays mimicking the reverse color diffraction elements evolved by the butterfly Pierella luna. Proc. Natl. Acad. Sci. USA 111, 15630–15634 (2014).

30. 30.

Palmer, C. & Loewen, E. Diffraction Grating Handbook, 6th edn., (Newport Corporation, 2005).

31. 31.

Hsiung, B. K., Blackledge, T. A. & Shawkey, M. D. Spiders do have melanin after all. J. Exp. Biol. 218, 3632–3635 (2015).

32. 32.

Hsiung, B.-K., Justyn, N. M., Blackledge, T. A. & Shawkey, M. D. Spiders have rich pigmentary and structural colour palettes. J. Exp. Biol. 220, 1975–1983 (2017).

33. 33.

Kinoshita, S., Yoshioka, S., Fujii, Y. & Okamoto, N. Photophysics of structural color in the Morpho butterflies. Forma 17, 103–121 (2002).

34. 34.

Shawkey, M. D. & Hill, G. E. Significance of a basal melanin layer to production of non-iridescent structural plumage color: evidence from an amelanotic Steller’s jay (Cyanocitta stelleri). J. Exp. Biol. 209, 1245–1250 (2006).

35. 35.

Siddique, R. H., Vignolini, S., Bartels, C., Wacker, I. & Hölscher, H. Colour formation on the wings of the butterfly Hypolimnas salmacis by scale stacking. Sci. Rep. 6, 36204 (2016).

36. 36.

Whitney, H. M., Reed, A., Rands, S. A., Chittka, L. & Glover, B. J. Flower iridescence increases object detection in the insect visual system without compromising object identity. Curr. Biol. 26, 802–808 (2016).

37. 37.

Land, M. F. in Neurobiology of Arachnids (ed. Barth, F. G.) Ch. IV (Springer Berlin Heidelberg, 1985).

38. 38.

Doucet, S. M. & Meadows, M. G. Iridescence: a functional perspective. J. R. Soc. Interface 6, 115–132 (2009).

39. 39.

Lu, J. & Vučković, J. Nanophotonic computational design. Opt. Express 21, 13351–13367 (2013).

40. 40.

Monn, M. A. & Kesari, H. A new structure-property connection in the skeletal elements of the marine sponge Tethya aurantia that guards against buckling instability. Sci. Rep. 7, 39547 (2017).

41. 41.

Wang, B. & Meyers, M. A. Light like a feather: a fibrous natural composite with a shape changing from round to square. Adv. Sci. 4, 1600360 (2016).

42. 42.

Tiwary, C. S. et al. Morphogenesis and mechanostabilization of complex natural and 3D printed shapes. Sci. Adv. 1, e1400052 (2015).

43. 43.

Hsiung, B.-K. et al. Tarantula-inspired noniridescent photonics with long-range order. Adv. Opt. Mater. 5, 1600599 (2017).

44. 44.

Bay, A. et al. Optimal overlayer inspired by Photuris firefly improves light-extraction efficiency of existing light-emitting diodes. Opt. Express 21, A179–A189 (2013).

45. 45.

Bay, A., Sarrazin, M. & Vigneron, J. P. Search for an optimal light-extracting surface derived from the morphology of a firefly lantern. Opt. Eng. 52, 028001–028001 (2013).

46. 46.

Mayer, A. & Bay, A. Optimization by a genetic algorithm of the light-extraction efficiency of a GaN light-emitting diode. J. Opt. 17, 025002 (2015).

47. 47.

Otto, J. C. & Hill, D. E. Catalogue of the Australian peacock spiders (Araneae: Salticidae: Euophryini: Maratus, Saratus), version 2. Peckhamia 148.2, 1–23 (2017).

48. 48.

Waldock, J. M. Redescription of Lycidas chrysomelas (Simon) (Araneae: Salticidae). Rec. West. Aust. Mus. 21, 227–234 (2002).

49. 49.

Maia, R., Eliason, C. M., Bitton, P.-P., Doucet, S. M. & Shawkey, M. D. pavo: an R package for the analysis, visualization and organization of spectral data. Methods Ecol. Evol. 4, 906–913 (2013).

50. 50.

Stavenga, D. G., Leertouwer, H. L., Pirih, P. & Wehling, M. F. Imaging scatterometry of butterfly wing scales. Opt. Express 17, 193–202 (2009).

51. 51.

Siddique, R. H., Diewald, S., Leuthold, J. & Hölscher, H. Theoretical and experimental analysis of the structural pattern responsible for the iridescence of Morpho butterflies. Opt. Express 21, 14351–14361 (2013).

## Acknowledgements

We thank David Hill for commenting on the manuscript and Nathan Morehouse for the peacock spider vision discussion before submission. This research was funded by the National Science Foundation (IOS-1257809, T.A.B.), Air Force Office of Scientific Research (FA9550-16-1-0331, M.D.S.; FA9550-15-1-0068, D.G.S.; FA9550-10-1-0555, D.D.D.), Human Frontier Science Program (RGY-0083, M.D.S.), Fonds Wetenschappelijk Onderzoek (G007177N, M.D.S.), The Scripps Institution of Oceanography Biomimicry for Emerging Science and Technology Initiative (D.D.D.) and The University of Akron Biomimicry Research and Innovation Center (B.-K.H.). B.-K.H. is supported by The Sherwin-Williams Company under a Biomimicry Fellowship.

## Author information

### Author notes

• Bor-Kai Hsiung

Present address: Scripps Institution of Oceanography (SIO), University of California, San Diego, La Jolla, CA, 92093, USA

### Affiliations

1. #### Department of Biology and Integrated Bioscience Program, The University of Akron, Akron, OH, 44325, USA

• Bor-Kai Hsiung
• , Matthew D. Shawkey
•  & Todd A. Blackledge

3. #### Department of Computational Physics, University of Groningen, 9747 AG, Groningen, The Netherlands

• Doekele G. Stavenga
4. #### 19 Grevillea Avenue, St. Ives, NSW, 2075, Australia

• Jürgen C. Otto
5. #### Scripps Institution of Oceanography (SIO), University of California, San Diego, La Jolla, CA, 92093, USA

• Michael C. Allen
•  & Dimitri D. Deheyn
6. #### Department of Electrical and Computer Engineering, University of Nebraska-Lincoln, Lincoln, NE, 68588, USA

• Ying Liu
•  & Yong-Feng Lu
7. #### Biology Department, Evolution and Optics of Nanostructures Group, Ghent University, Ledeganckstraat 35, 9000, Ghent, Belgium

• Matthew D. Shawkey

### Contributions

T.A.B., M.D.S., and B.-K.H. conceived research, and wrote the initial manuscript. B.-K.H. designed experiments, performed microscopy, and analysed data. R.H.S. performed optical modelling, simulations, and analysed data. D.G.S. performed imaging scatterometry. J.C.O. collected and documented spiders. M.C.A. and D.D.D. performed hyperspectral Imaging. Y.L. and Y.-F.L. performed two-photon nanolithography and prototype characterization. T.A.B. and M.D.S. provided scientific leadership to B.-K.H. All authors discussed the results and commented on the manuscript at all stages.

### Competing interests

The authors declare no competing financial interests.

### Corresponding author

Correspondence to Bor-Kai Hsiung.

## Electronic supplementary material

### DOI

https://doi.org/10.1038/s41467-017-02451-x

• 1.
• Karin Kjernsmo
• , Joanna R. Hall
• , Cara Doyle
• , Innes C. Cuthill
• , Nicholas E. Scott-Samuel
•  & Heather M. Whitney

Scientific Reports (2018)

• 2.
• Jocelyn E. Behm
• , Brenna R. Waite
• , S. Tonia Hsieh
•  & Matthew R. Helmus

BMC Ecology (2018)