Examples / p5.js Examples / / Campfire

Campfire

example p5.js javascript creating-classes genuary

Click here to view this code in the p5 editor.

This sketch creates a digital campfire. Sit back and relax!

I created this for the 31st day of #genuary which had a prompt of obtaining one of Eno’s Oblique Strategies. The strategy I chose was “Remember those quiet evenings”.

campfire campfire campfire campfire

Remix Ideas

  • Add more squares to the fire, or change their speed or lifetime.
  • Try other colors. Can you make a blue fire?
  • Add more to the scene. Try adding a moon, or a tent, or a tree.

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!