The secret history of spots, stripes and other everyday patterns