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
. Cellular textures, Worley observed, can be generated from linear combinations of the first few
. Adjust the weights of
with the sliders. Interesting results can also obtain using alternate distance metrics.