Platane / snk

🟩⬜ Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif
https://platane.github.io/snk
4.4k stars 1.12k forks source link

API to change colors of the snake, points and the world #28

Closed tomlin7 closed 2 years ago

tomlin7 commented 2 years ago

Description

It would be a really nice feature if it is possible to change the snake's and points' colors. Currently it's only green and hues. It is also great if there were pre-built themes!

Platane commented 2 years ago

you can do that with the new version :)

You will need to update to 2.0.0-rc.3 , check the readme.

tomlin7 commented 2 years ago

Omg thanks a lot! I really like this project, the snake looks pretty cool too! And sorry for not reading the readme properly :P

tomlin7 commented 2 years ago
&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9

This portion of the README requires a slightly more detailed instructions mayhaps, I hope you will resolve it. The colors above are in which order - should be pointed out too.

Platane commented 2 years ago

You are right, it should be specified that the colors are from empty cells to denser cells

thanks for the feedback :+1:

tomlin7 commented 2 years ago

I wanted to let you know, I was able to make a nice snake after that, all thanks to your awesome project. image