Yesterday, Saturday, I felt like creating a flame effect (fire) in Python. This effect was quite popular in the early 90s. I remembered that the algorithm was quite simple, but there were some tricks to do with the color palette.
I found this article with the implementation in C: https://lodev.org/cgtutor/fire.html
From the same article, we can get an idea of how the effect looks:
After reading the article and watching some videos on YouTube, I faced two problems: