Poorly Coded Cats

Poorly Coded Cats

August 4, 2022

example p5.js javascript images

Inspired by this tweet:

This code takes the original cat image and uses it as a randomly colored stamp.

Click here to edit this code in the p5.js editor.

colorful cats filling the screen black and white cats filling the screen transparent cats filling the screen red and blue cats filling the screen

Remix Ideas

  • Change the color of the cats. What if every cat is a shade of green?
  • Rotate the cat before you stamp it
  • Fill a cat with a random walker
  • Use a different image as a stamp

Images Examples


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!