通过使用 createElement()、createInput() 和 createButton() 函数,你可以获取通过输入文本提交的字符串,并将其显示在你的画布上。
输入框和按钮: 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!