Citrus Packing

I became obsessed with the structure of citrus fruits after reading the wikipedia article on them. Inspired the image of citrus fruit slices on that page, I decided to distill down what makes a citrus fruit look like a citrus fruit:

  • Thin outer peel (epicarp)
  • Thicker inner peel (mesocarp)
  • Internal wedges (juice vesicles…yummy)
  • Center hole / column

The number of vesicles and various thicknesses are all randomized, while the colors are limited to 4 palettes. The fruit slices are then packed into the viewport using simple physics-like forces. Of course, then I had to animate it and add rotation.

Source code is now available on github.