p5.js sketches
This sketch simulates an oil paint using a background picture as a reference (in this case an old picture from me and my sister). The work by Sergio Albiac was the main source of inspiration.
The sketch has many optional parameters, but not all combinations produce optimal results. Probably, the most useful parameter is maxColorDiff. Modify it to change the painting precision form high (30, 30, 30) to low precision (90, 90, 90).
These videos show the program in action with other pictures:
This one shows the debug mode in action:
Animations are also possible:
For more details, check the source code or play with it at JSFiddle.