Make flame with Elm

A friend of mine, Roger Engelber, pointed me to a nice article  on doing functional programming in Lua. The article detailed the steps to generate a flame like effects using a simple particle system.

Of course, it naturally lead to me trying to do the same in Elm!

 

To translate the approach was really straight forward, though there are some minor differences, e.g. alpha values in Elm are between 0 to 1 but 0 to 255 in Lua.

 

The code is available on github, feel free to poke around.

Here are two variations in action:

 

Links

Source code

Live demo 1

Live demo 2

Live demo 3

Live demo 4

 

Learn to build Production-Ready Serverless applications

Want to learn how to build Serverless applications and follow best practices? Subscribe to my newsletter and join over 5,000 AWS & Serverless enthusiasts who have signed up already.

Leave a Comment

Your email address will not be published. Required fields are marked *