This collection of scripts reproduces the p5.js examples with Adobe Illustrator's ExtendScript.
However, since it is not interesting just to reproduce them, some of them are modified.
Download the zip archive and unzip it. The scripts can be placed anywhere on your computer.
To run the scripts, from File > Scripts > Other Script...
In rare cases, if you continue to use the script, it may stop working.
In that case, restart Illustrator and run this script again.
Illustrator CS6 or higher
All scripts are licensed under the MIT license.
See the included LICENSE file for more details.