32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
name: "generate-snake-game-from-github-contribution-grid"
|
|
description: "Generates a snake game from a github user contributions grid. Output the animation as svg"
|
|
author: "platane"
|
|
|
|
runs:
|
|
using: node16
|
|
main: dist/index.js
|
|
|
|
inputs:
|
|
github_user_name:
|
|
description: "github user name"
|
|
required: true
|
|
outputs:
|
|
required: false
|
|
default: null
|
|
description: |
|
|
list of files to generate.
|
|
Generates one file per line. Each output can be customized with query string.
|
|
following this pattern: path/to/file.svg?palette=<github or github-dark>&color_snake=<color>&color_dots=<color>,<color>,<color>,<color>,<color>
|
|
|
|
supported query string options:
|
|
|
|
- palette: a preset of color, one of [github, github-dark, github-light]
|
|
- color_snake: color of the snake
|
|
- color_dots: coma separated list of dots color. The first one is the empty cell color, the second one is the lightest shade, the third one is the second lightest shade ect ...
|
|
|
|
example:
|
|
outputs: |
|
|
dark.svg?palette=github-dark&color_snake=blue
|
|
light.svg?color_snake=#7845ab
|
|
ocean.svg?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9
|