Campfire


Campfire


January 31, 2021

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.

Creating Classes 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!