Nature follows a number of intricate and subtle mathematical rules to produce the patterns, shapes, and colors that we find so mesmerizing.