Given a set of random feature points, we can compute the distance from any point to the nearest feature point. Call this nearest-feature distance function . The function that returns the distance to the second nearest feature is , and the nearest-feature distance, . Cellular textures, Worley observed, can be generated from linear combinations of the first few . Adjust the weights of to with the sliders. Interesting results can also obtain using alternate distance metrics.

This Demonstration is based on S. Worley, "A Cellular Texture Basis Function," SIGGRAPH '96 Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques.