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.39k stars 1.11k forks source link

[Bug] Snake rendering Bug #58

Closed ramazansancar closed 1 year ago

ramazansancar commented 1 year ago

I'm having a little trouble creating a snake. Can you help me?

Same situation in svg and gif.

image

https://github.com/ramazansancar/ramazansancar/blob/output/github-contribution-grid-snake.svg

muhammad-mobeen commented 1 year ago

Yes, the same issue happening to me.

0xhara commented 1 year ago

My snake's not moving!! :D

VikashPR commented 1 year ago

I am facing same issue too

micaelmz commented 1 year ago

same here

ramazansancar commented 1 year ago

My snake's not moving!! :D

You need to feed your snake :P

Platane commented 1 year ago

it's fixed on the v2 version

Here is an example config using the v2 :


    steps:
      - name: generate github-contribution-grid-snake.svg
        uses: Platane/snk/svg-only@v2
        with:
          github_user_name: ${{ github.repository_owner }}
          outputs: |
            dist/github-contribution-grid-snake.svg
            dist/github-contribution-grid-snake-dark.svg?palette=github-dark

for some context about the error: https://github.com/Platane/snk/issues/54#issuecomment-1373291774

ramazansancar commented 1 year ago

@Platane Thanks 😇

arsalanyavari commented 1 year ago

it's fixed on the v2 version

Here is an example config using the v2 :

    steps:
      - name: generate github-contribution-grid-snake.svg
        uses: Platane/snk/svg-only@v2
        with:
          github_user_name: ${{ github.repository_owner }}
          outputs: |
            dist/github-contribution-grid-snake.svg
            dist/github-contribution-grid-snake-dark.svg?palette=github-dark

for some context about the error: #54 (comment)

Hello Platance. Excuse me, Sutil forked your repository and add transparency to this project; But there is still a rendering problem for his action output.; could you help us to debug this one?

The repository address: github.com/Sutil/snk His usage: github.com/Sutil/Sutil

PS: His action output has just one output SVG file

ramazansancar commented 1 year ago

Hello Platance. Excuse me, Sutil forked your repository and add transparency to this project; But there is still a rendering problem for his action output.; could you help us to debug this one?

The repository address: github.com/Sutil/snk His usage: github.com/Sutil/Sutil

PS: His action output has just one output SVG file

Hello @arsalanyavari @Sutil, can you open a new issue?

Sutil commented 1 year ago

Hello Platance. Excuse me, Sutil forked your repository and add transparency to this project; But there is still a rendering problem for his action output.; could you help us to debug this one? The repository address: github.com/Sutil/snk His usage: github.com/Sutil/Sutil PS: His action output has just one output SVG file

Hello @arsalanyavari @Sutil, can you open a new issue?

@ramazansancar I need to take time to debug it. Maybe GitHub changed the SVG return, and the algorithm can't read it. I will try to check it later.

Platane commented 1 year ago

I have fixed it on main. You can take a look

Notice that since v2, you have option to customize the snake and dots colors