這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

p5.js 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.

  • Currently, this plugin does not work with createCanvas(windowWidth, windowHeight). You’ll need to use actual integer values like, createCanvas(700, 400).
  • Currently, this plugin does not include the p5.dom.js or the p5.sound.js libraries.

This project was bootstrapped with Create Guten Block under the MIT License.

This project also uses the p5.js library which is free software under the GPL License.

螢幕擷圖

  • Insert the p5.js block into the editor.
  • You can edit the code and preview the results from within the editor.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • p5.js Block

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.

常見問題集

Q: Does this plugin require the Gutenberg plugin?

A: Yes, the Gutenberg plugin, or WordPress 5.0 must be installed and active in order to use this block.

Q: Can I contribute to the project?

A: Of course! This is the GitHub Repository: https://github.com/mapk/p5js-block

使用者評論

2020 年 6 月 1 日
I just started learning p5.js a couple of days ago and it was great to be able to instantly add sketches to posts on my existing wordpress site. Wish the sound library was included however as most of my work involves sound. Hopefully in the future!
2019 年 3 月 13 日
Processing is a popular language for digital expression -- and I'm delighted to get to easily embed Processing code into a Gutenberg block. Wow!
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈p5.js Block〉的開發相關工作。

參與者

〈p5.js Block〉外掛目前已有 4 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈p5.js Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1 – Inclusion of p5.js as a local dependency.

1.0 – Functional prototype. It works great using iframes.