Processing code directly free WordPress plugin
Description
Processing code directly free WordPress plugin
Processing code directly in your web page with shortcode is using this technique :
http://processingjs.org/articles/jsQuickStart.html#processingcodeinwebpage
and adding prismjs (http://www.prismjs.com) for highlight the code
add processing code in your post
Just add shortcode
[p5js code canvas][/p5js] to show the code and the result
[p5js code][/p5js] to show the code
[p5js canvas][/p5js] to show the result of the code
example
[p5js code canvas]
// Processing code
void setup() {
size(200, 200);
background(100);
stroke(255);
ellipse(50, 50, 25, 25);
println(“hello web!”);
}
[/p5js]