Run p5.js in your WordPress site with this Gutenberg block.
p5.js + WordPress. Want to share some generative art on your own WordPress site? This is the plugin to make it happen. Add your custom p5.js code, and preview it in the Gutenberg editor before publishing it on your page or post.
createCanvas(windowWidth, windowHeight). You’ll need to use actual integer values like,
This project also uses the p5.js library which is free software under the GPL License.
/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly.
A: Yes, the Gutenberg plugin, or WordPress 5.0 must be installed and active in order to use this block.
A: Of course! This is the GitHub Repository: https://github.com/mapk/p5js-block
1.1 – Inclusion of p5.js as a local dependency.
1.0 – Functional prototype. It works great using iframes.