万花筒是一种光学仪器,它有两个或更多反射面,这些反射面彼此以一定角度倾斜。使用 translate()、rotate()、和 scale() 函数,你可以在画布上复制出万花筒的视觉效果。
万花筒: 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!