Keats complained that a mathematical explanation of rainbows robs them of their magic, conquering "all mysteries by rule and line". But rainbow geometry is just as elegant as the rainbows themselves.