Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts.
Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology.
There are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning and prototyping.
With this plugin you can embed your P5JS sketches in your WordPress site.
The sketch will be responsive: it scales automatically when the window is being resized.
Plugin download page
(generative art by Rolf van Gelder)
- Create a new sub-directory in the /uploads/p5js/ directory (using FTP):
[sketch_folder]with the name of the P5JS sketch you want to embed, for instance
If you don’t like to use FTP, you can use a file manager plugin like:
- Upload all files and directories (index.html, scetch.js, libraries, etc.) of your P5JS sketch to the new WordPress
NOTE: your sketch needs to have an index.html file!
- Add a short code to your post or page:
[p5js sketchfolder=myfirstsketch canvaswidth=566 canvasheight=378 bordersize=1 bordercolor=#aaa][/p5js]
sketchfolder: the name of your P5JS sketch (REQUIRED)
canvaswidth: the width of the sketch, should be the same as in your creattecanvas() statement (REQUIRED)
canvasheight: the height of the sketch, should be the same as in your creattecanvas() statement (REQUIRED)
bordersize: size of the border in pix (OPTIONAL, default: 0px)
bordercolor: color of the border around the sketch (OPTIONAL, default: no border, only works when you also define a bordersize)
Don’t hesitate to send me an email.
- You like this plugin?
Please support the development of it with a donation. Thank you!
(click on the animation to change it)