Title: p5.js Block
Author: Mark Uraine
Published: <strong>2019 年 2 月 7 日</strong>
Last modified: 2020 年 5 月 28 日

---

搜索插件

![](https://ps.w.org/wp-p5js-block/assets/banner-772x250.png?rev=2026904)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-p5js-block/assets/icon-256x256.png?rev=2026902)

# p5.js Block

 作者：[Mark Uraine](https://profiles.wordpress.org/mapk/)

[下载](https://downloads.wordpress.org/plugin/wp-p5js-block.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-p5js-block/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-p5js-block/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-p5js-block/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-p5js-block/#developers)

 [支持](https://wordpress.org/support/plugin/wp-p5js-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](https://github.com/ahmadawais/create-guten-block)
under the [MIT License](https://github.com/ahmadawais/create-guten-block/blob/master/LICENSE).

This project also uses the p5.js library which is free software under the [GPL License](http://p5js.org/copyright.html).

## 屏幕截图

[⌊Insert the p5.js block into the editor.⌉⌊Insert the p5.js block into the editor
.⌉[

Insert the p5.js block into the editor.

[⌊You can edit the code and preview the results from within the editor.⌉⌊You can
edit the code and preview the results from within the editor.⌉[

You can edit the code and preview the results from within the editor.

## 区块

该插件提供了 1 个区块.

 *   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

## 评价

![](https://secure.gravatar.com/avatar/b9ccfa81ba51c8cec6e4e654eee3d1a477c083ab42e06d2425fcb6ce64d7f817?
s=60&d=retro&r=g)

### 󠀁[Good idea](https://wordpress.org/support/topic/good-idea-73/)󠁿

 [televizor](https://profiles.wordpress.org/televizor/) 2020 年 7 月 19 日

Thank you for this.

![](https://secure.gravatar.com/avatar/e05d3a73570246b86c4fecb0f25c626384a26336ac01405f79dbcc9504723d11?
s=60&d=retro&r=g)

### 󠀁[Fantastic!](https://wordpress.org/support/topic/fantastic-2456/)󠁿

 [zargabrite](https://profiles.wordpress.org/zargabrite/) 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!

![](https://secure.gravatar.com/avatar/775894c99a8fbeea86f893222b51abf0fe6da4a938b20eb1e608d4d0958fe816?
s=60&d=retro&r=g)

### 󠀁[Makes it easy to add Processing to WordPress posts!](https://wordpress.org/support/topic/https-twitter-com-tarngerine-status-1108038641819893760/)󠁿

 [Alexis Lloyd](https://profiles.wordpress.org/alexislloyd/) 2019 年 3 月 19 日

![](https://secure.gravatar.com/avatar/533ec316369ac50826003e35f0f382fe21d34f09b5a00c2210e670c641497893?
s=60&d=retro&r=g)

### 󠀁[This makes Processing easy!](https://wordpress.org/support/topic/this-makes-processing-easy/)󠁿

 [johnmaeda](https://profiles.wordpress.org/johnmaeda/) 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条评价 ](https://wordpress.org/support/plugin/wp-p5js-block/reviews/)

## 贡献者及开发者

「p5.js Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mark Uraine ](https://profiles.wordpress.org/mapk/)

「p5.js Block」插件已被翻译至 5 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-p5js-block/contributors)
为本插件所做的贡献。

[帮助将「p5.js Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-p5js-block)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-p5js-block/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-p5js-block/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-p5js-block/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-p5js-block/)。

## 更新日志

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

1.0 – Functional prototype. It works great using iframes.

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-p5js-block/) 、 [Russian](https://ru.wordpress.org/plugins/wp-p5js-block/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/wp-p5js-block/) 、 [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/wp-p5js-block/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/wp-p5js-block/) 和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wp-p5js-block/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-p5js-block)
 * 标签
 * [generative art](https://cn.wordpress.org/plugins/tags/generative-art/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [p5js](https://cn.wordpress.org/plugins/tags/p5js/)[processing](https://cn.wordpress.org/plugins/tags/processing/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-p5js-block/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/wp-p5js-block/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-p5js-block/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-p5js-block/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-p5js-block/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-p5js-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-p5js-block/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-p5js-block/reviews/)

## 贡献者

 *   [ Mark Uraine ](https://profiles.wordpress.org/mapk/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-p5js-block/)