-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
51 lines (47 loc) · 1.45 KB
/
Copy pathaction.yml
File metadata and controls
51 lines (47 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: GitHub Gravity
description: Generate an animated SVG of your GitHub contribution graph falling under gravity, with custom text as collision obstacles.
author: flycran
branding:
icon: git-pull-request
color: green
inputs:
username:
description: GitHub username to fetch contributions for
required: true
text:
description: Text to display as collision obstacles (defaults to username)
required: false
output-path:
description: Path to write the generated SVG file
required: false
default: gravity.svg
font-size:
description: Font size of the collision text
required: false
default: '80'
sample-rate:
description: Trajectory sample rate (higher = smaller SVG, less smooth animation)
required: false
default: '4'
shape:
description: Shape of the contribution blocks (circle or square). Circle has smoother physics and less likely to clip through obstacles.
required: false
default: circle
text-top:
description: Distance from the top of the world to the text (controls vertical text position)
required: false
default: '50'
background-color:
description: Background color of the SVG (CSS color value)
required: false
default: transparent
text-color:
description: Color of the collision text (CSS color value)
required: false
default: black
outputs:
svg-path:
description: Path to the generated SVG file
runs:
using: node24
main: dist/index.js