Examples / p5.js Examples / / Parallax Dots

Parallax Dots

example p5.js javascript creating-classes

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.

campfire campfire campfire campfire

Remix Ideas

  • Change the colors of the dots.
  • Add more layers of dots.
  • Base the scrolling off of the mouse dragging.

Comments and Questions

Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!