JS library for mesh generation photo gallery?

Hello, interested in the following question.

As a rule, many photographs are ordered on the page or so:

either way:

Is there any ready script for the formation of uniformly filled shapes, like this?

Or even more difficult. Completely by chance, from the provided set.
October 8th 19 at 03:44
1 answer
October 8th 19 at 03:46
jQuery Masonry — it's possible you need.

Find more questions by tags jQueryJavaScriptGallery