示例 输入框和按钮

输入框和按钮

通过使用 createElement()createInput()createButton() 函数,你可以获取通过输入文本提交的字符串,并将其显示在你的画布上。

Creative Commons BY-NC-SA license badge

输入框和按钮: Revised by Kasey Lichtlyter. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!