开发者 | CAGE Web Design | Rolf van Gelder |
---|---|
更新时间 | 2022年5月6日 21:45 |
捐献地址: | 去捐款 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 6.0 |
版权: | GPLv2 or later |
This plugin uses the [pjs4wp] shorttag You can use the shorttag in two different ways 1) Put the actual ProcessingJS code in a post or page, for instance: [pjs4wp] void setup() { size(200, 200); text("Hello world!", 50, 50); } [/pjs4wp] 2) Use an existing ProcessingJS .pde sketch like this: [pjs4wp url="/wp-content/uploads/my_sketch.js" bordercolor="#000"][/pjs4wp] IMPORTANT: RENAME YOUR .pde FILE TO .js BEFORE UPLOADING! So in the example: rename your original my_sketch.pde file to my_sketch.js! Some servers / browsers are not happy with the .pde extension, that's why...