Every pixel is compared with the one below it. If the upper one is brighter by more than a threshold, the two trade places, blended rather than swapped outright. Repeated over the whole image, the light parts sink like paint running down a wall.

The original was a tool: load an image, adjust the controls, save the result. This version runs without controls, one pass per frame, and fades from each sorted painting to the next.