# Libraries I use for generative art

DevFeed: [Libraries I use for generative art](<https://devfeed.tech/articles/libraries-i-use-for-generative-art-37303.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/js-libraries-for-generative-art/>)

Author: Stanko

Published: 2022-02-28T00:00:00Z

Content type: article

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [generative art](<https://devfeed.tech/topics/generative-art.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Randomizer](<https://devfeed.tech/topics/randomizer.md>), [plotting](<https://devfeed.tech/topics/plotting.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>)

Tags: [generative-art](<https://devfeed.tech/tags/generative-art.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [plotting](<https://devfeed.tech/tags/plotting.md>), [programming](<https://devfeed.tech/tags/programming.md>), [random](<https://devfeed.tech/tags/random.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

## AI overview

A curated list of JavaScript libraries used to create generative art, organized into categories including randomness and noise, geometry, vector fields, 3D, spatial data structures, Axidraw, and other tools. The author selected the libraries based partly on performance and describes their practical uses.

## Source excerpt

This is going to be a very straight forward post. Just a list of JavaScript libraries I use in creating my generative art. And I really mean I use (and abuse) them. All of them are used in multiple of my drawings. I'll include couple of photos under the respective libraries. I finally settled with these libraries after trying several other alternatives for each. Performance was one of the key factors (especially as generative work can get brute-forcy sometimes). Huge thank you to all people who created and shared these wonderful tools!Also, as a rule of thumb, when you find a good library, you might want to check author's GitHub profile. In the most cases you are going to find more useful stuff there. That is exactly how I found some of these. Categories: Randomness and noise Geometry Vector fields 3D vector line engines Spatial data structures Axidraw Other Randomness and noise # seedrandom # In generative programming it is super important to be able to repeat the same output. As randomness is heavily involved, we need a way to repeat random values. That's where seedrandom steps in as an excellent seeded random number generator. random-words # For random number generator seeds, I like to use real words instead of randomly generated strings. This library is a simple dictionary of couple of thousands english words. simplex-noise # Fast implementation of Open Simplex noise. poisson-disk-sampling # When you need a random collections of points in space, Poisson sampling is a great tool. It gives us much more natural distribution than just using random values. Geometry # js-angusj-clipper # This library is a lifesaver. For all your polygon clipping and offseting needs. And it is super fast as it is implemented in WebAssembly. voronoi # Sometimes I think I use Voronoi diagrams too much in my work. Anyway, this library efficiently computes Voronoi diagrams. robust-point-in-polygon # For figuring out if the point is inside of the polygon. I tried a couple of other libraries