levitated.net which is an interesting site with lots of original flash animations, I stumbled across Invader.fractal. I wanted to make the same as a wallpaper for enlightenment.
I’ve put all the code on github.
In order for the wallpaper to be fast and use low ressources, I decided to have an evas smart object used inside an edje external module. That module is then used in a very small edc file making it a background usable by enlightenment.
In order to draw a 7x7 random eenvader, here’s the code:
uint16_t u = ;
int *mem = ;
for
I let my C compiler unroll the loop and optimise the code for me.
I use colors from solarized.
And if you click and kill the big one on the left, here’s what you get:
The wallpaper is refreshed every 30 seconds.