Square Fill


Square Fill


January 10, 2021

example p5.js javascript animation

This sketch fills the screen with squares, creating a colorful border effect.

squares filling the canvas

Remix Ideas

  • Change the speed of the squares, or the size of the border.
  • Try different shapes like rectangles, triangles, and circles.
  • Reverse the animation so the squares fill the screen from the outside instead of from the center.

Animation Examples

Comments

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

Comments are powered by the Happy Coding forum. This page has a corresponding forum post, and replies to that post show up as comments here. Click the button above to go to the forum to post a comment!