这个例子演示了如何使用 random() 函数。
当用户按下鼠标按钮时,圆的位置和颜色会随机改变。
随机: Revised by Darren Kessner. 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!