DEV Community

Discussion on: It's alive! Simulate organisms with Conway's game of life on a canvas 🧫🔋

Collapse
 
thormeier profile image
Pascal Thormeier

Oh wow! I love how the animation also allows to see previous generations. What were the challenges you faced during this implementation?

Collapse
 
esger profile image
Esger Jellema

Thank you! Here my main challenge was trying to speed things up, again :)
So I built an AureliaJs web app and a web worker to do the heavy lifting.
The 'trails' were quite simple to accomplish: just draw the new generation with opacity < 1 in order to faint all 'old' cells a bit every generation.
PS. You can even change the rules of life while it's running and change various other settings as well.