A kaleidoscope is an optical instrument with two or more reflecting surfaces tilted to each other at an angle. Using the translate(), rotate(), and scale() functions, you can replicate the resulting visual of a kaleidoscope in a canvas.
Kaleidoscope by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.