This example uses parallax scrolling to show three layers of colorful dots. Move your mouse around the canvas to see the effect.
Click here to view this code in the p5 editor.
- Change the colors of the dots.
- Add more layers of dots.
- Base the scrolling off of the mouse dragging.