Skip to content
Public template

About

Procedural pixel-art Tulkun whale generated from your GitHub contributions and language colors as a looping GIF for your profile README.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

27 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

git-tulkun

A procedural pixel-art Tulkun leviathan for your GitHub profile README.md that resets to a baby calf every January 1st, grows on a logarithmic scale into an armored adult bull from your contributions, and takes its colors from your top programming languages.

Live git-tulkun rendered from @PramudithaN's GitHub activity
Live git-tulkun generated from @PramudithaN's current-year GitHub activity (Stage 4: Mature Tulkun)

Quick Start (2-Minute Setup)

Instant Generator: Enter your GitHub username at pramudithan.github.io/git-tulkun to preview all 4 camera views live and copy ready-made Markdown + YAML snippets.

1. In your GitHub profile repository (YOUR_USERNAME/YOUR_USERNAME), add this embed snippet to README.md (replace YOUR_USERNAME with your GitHub username):

<p align="center">
  <a href="https://github.com/PramudithaN/git-tulkun">
    <img src="https://raw.githubusercontent.com/YOUR_USERNAME/YOUR_USERNAME/output/tulkun/tulkun.gif" width="640" alt="git-tulkun swimming" />
  </a>
</p>

Using view: breach? Use width="280" in the <img> tag so the portrait (480×600) card stays balanced.

2. Create .github/workflows/tulkun.yml in the same repository (the action renders tulkun.gif, tulkun.webp, and share-card.webp and pushes them to an orphan output branch automatically so daily updates never bloat your main commit history):

name: Update Tulkun

on:
  schedule:
    - cron: "0 0 * * *" # Daily at 00:00 UTC
  workflow_dispatch:    # Allow manual runs from the Actions tab
  push:
    branches: [main]

permissions:
  contents: write

jobs:
  tulkun:
    runs-on: ubuntu-latest
    steps:
      - uses: PramudithaN/git-tulkun@v1 # or @main for the latest unreleased features
        with:
          view: side     # side | dive | top | breach
          window: annual # annual (Jan 1 reset) | rolling (trailing 365 days)
          # canon: "true" # Optional: use canon Pandoran ocean colors

3. Run the workflow once from Actions → Update Tulkun → Run workflow (or push to main). Your output branch and profile README.md whale will appear automatically!

Try it in your browser or compare with a friend: Open the Interactive Whale Generator & Comparator to preview your username instantly, or click "Use this template" at the top of this repo.

Latest Release CI Status Wiki Documentation Rust GitHub Actions License: MIT


Share "Your Tulkun This Year" & Compare With Friends

Every workflow run automatically generates a 1280×640 lossless WebP social card at tulkun/share-card.webp on your output branch showing your current stage (1.CALF $\rightarrow$ 5.BULL), contribution count, and language palette, ready to post on X, LinkedIn, or Discord when the January 1st reset begins or when your whale reaches Stage 5: Adult Bull:

Your Tulkun This Year Share Card (1280x640)

  • Compare Whales Side-by-Side: Enter two GitHub usernames in the Interactive Whale Comparator to compare stages, spine length, and language colors.
  • Join the Community Pod: Anyone using git-tulkun in their public workflow is automatically featured in SHOWCASE.md!

Logarithmic Evolution Stages (0 $\rightarrow$ 2,500+ Contributions)

By default (window: annual), your Tulkun resets to a Stage 1 Baby Calf on January 1st and grows along a logarithmic curve (g = (commits / 2800)^0.45) across 5 biological stages (or set window: rolling to use a trailing 365-day window year-round):

Stage Contributions (annual or rolling) Live 25 FPS Animation Anatomical Changes Unlocked
Stage 1
Baby Calf
0 – 149
contributions
Stage 1 Baby Calf Defined from 0 contributions upward. Compact 64px spine, blunt teal-blue snout with a flat oval sensor dimple, light cream dorsal swirl patches, bright cream belly, and stubby fins with pale cream tail flukes.
Stage 2
Yearling Calf
150 – 499
contributions
Stage 2 Yearling Calf Spine lengthens (95px) and slims down; kuru neural whips sprout behind the anterior opercular flippers while tail flukes begin darkening at the base.
Stage 3
Adolescent
500 – 1,199
contributions
Stage 3 Adolescent Sensor crest rises and slopes forward; all 6 pectoral and ventral flippers elongate with crisp white leading edges, and secondary pelvic accessory paddles widen under the tail stock.
Stage 4
Mature Tulkun
1,200 – 2,499
contributions
Stage 4 Mature Tulkun Dark charcoal carapace armor replaces the pale calf dorsal patches; forward-jutting sloped maroon sensor crest with an olive-gold front tip, 5 sharp sawtooth jaw triangles, and segmented cerulean tail pleats.
Stage 5
Adult Male Bull
2,500+
contributions
Stage 5 Adult Male Bull Maximum 186px leviathan length and full scythe-wing span; towering vertical hooked hammer-crest with concave rear overhang, 6 serrated jaw triangles, and white carapace battle-scars.

Camera Perspectives (view)

You can render your Tulkun from 4 camera angles using the view input (side, dive, top, or breach):

Camera Mode Live Animated Preview Description
view: side
(Default)
Side Profile Swim Lateral Side Swim: Displays the hooked hammer-crest, serrated jaw war-stripes, sculpted CurvedBlade pectoral scythe-wings and tail flukes, flowing contour patterns, and looping kuru whip.
view: dive 3/4 Dynamic Dive 3/4 Dynamic Dive: Displays the arched dorsal carapace, matching sculpted head crest, flowing flank contours, and sweeping foreground scythe flipper.
view: top Top-Down Dorsal Swim Dorsal Top-Down Swim: Displays the full wingspan (opercular fins, primary scythe wings, trailing kuru whips, pelvic paddles, and twin curved caudal flukes).
view: breach Portrait Breaching Loop Portrait Breaching Loop (480×600): Swims horizontally deep underwater with depth-based translucency, surges out of layered ocean wave ribbons into a ballistic leap with frothy splash plumes, and dives deep back under.

Stage-Scaled Breaching Physics (view: breach)

Breaching power scales with your contribution growth (breach_power = growth^1.15) so young calves perform low surface hops while mature bulls launch high above the waves with full-scale splash curtains:

Stage 1: Baby Calf (50 contributions) Stage 5: Adult Bull (2,800 contributions)
Stage 1 Baby Calf Breach Stage 5 Adult Bull Breach
Stage Contributions (annual or rolling) Apex Jump Height Horizontal Leap Span Dive Depth Splash Scale
Stage 1: Baby Calf 0 – 149 (e.g. 50) 42–51px 86–95px 72–76px 45–52%
Stage 2: Yearling Calf 150 – 499 (e.g. 250) 63px 102px 82px 61%
Stage 3: Adolescent 500 – 1,199 (e.g. 800) 79px 116px 90px 74%
Stage 4: Mature Tulkun 1,200 – 2,499 (e.g. 1,800) 96px 132px 97px 89%
Stage 5: Adult Male Bull 2,500+ (e.g. 2,800) 108px 144px 102px 100%

For portrait view: breach embeds (480×600), width="280" keeps the vertical card balanced in your profile README.md (and --view jump works as a CLI alias for --view breach):

<p align="center">
  <a href="https://github.com/PramudithaN/git-tulkun">
    <img src="https://raw.githubusercontent.com/YOUR_USERNAME/YOUR_USERNAME/output/tulkun/tulkun.gif" width="280" alt="git-tulkun breaching" />
  </a>
</p>

How the Rendering Engine Works

  1. Dynamic Language Color Ramps (src/coat.rs):

    • Queries the official GitHub hex colors of your top repository languages (such as TypeScript #3178c6, Rust #dea584, and Python #3572A5) and converts each into a 4-shade pixel-art ramp:
      • Primary Language (#1): Tints the ventral pleated belly, calf skin, and dark dorsal carapace armor.
      • Secondary Language (#2): Tints the sensor crest organ core.
      • Tertiary Language (#3): Tints the sensor crest tip highlights.
    • Set canon: "true" (or --canon on the CLI) for canonical deep-ocean colors:

      Canon Tulkun Palette

  2. 3D Cylindrical Normal Lighting and 4x4 Ordered Bayer Dithering (src/render.rs):

    • Each pixel across the spine and appendages computes a 3D surface normal $\vec{n} = (n_x, n_y, \sqrt{1 - n_x^2 - n_y^2})$ illuminated by a directional light vector [-0.30, -0.62, 0.72], quantized with a 4x4 Bayer ordered dither matrix and bordered with a 1px dark outline (#0f121a).
  3. Cetacean S-Wave Swimming Physics and Bottom-Left Metrics HUD:

    • 75-Frame Cetacean S-Wave (3.0s Loop at 25 FPS): Smooth 4cs uniform frame timing eliminates centisecond jitter as a traveling wave flexes through the mid-torso and drives a vertical propulsion stroke down the tail peduncle and dual flukes.
    • Stage-Scaled Portrait Breaching Physics (view: breach, 240×300 native / 480×600 at 2×): Traces a 4-segment closed loop (BreachArcTable) — horizontal underwater swim, upward turn & surface breach, ballistic jump arc, and deep-water re-entry dive — with growth-scaled jump height (breach_power = growth^1.15), exit/entry splash curtains, and depth-based translucency below the waterline.
    • Bottom-Left Pixel-Art Metrics HUD: Displays your current evolution stage (STAGE 1: BABY CALF through STAGE 5: ADULT BULL) and CONTRIBUTIONS: <count> in the bottom-left corner.

GitHub Action Inputs

Input Default Description
login ${{ github.repository_owner }} GitHub username whose contributions and repository languages to read.
view side Camera perspective: side (Lateral Side Swim), dive (3/4 Dynamic Dive), top (Dorsal Top-Down), or breach (480×600 Portrait Jump-Rotate-Dive Loop; CLI alias jump).
window annual Contribution window: annual (resets every January 1st) or rolling (trailing 365 days).
canon "false" Set to "true" to use canonical Tulkun colors instead of GitHub language colors.
output-dir tulkun Output directory for tulkun.gif, tulkun.webp, and share-card.webp.
commit "true" Set to "true" to automatically commit and push the generated images.
branch output Target branch when commit: "true" (uses an orphan output branch by default so daily updates never bloat your main history).
token ${{ github.token }} GitHub token for reading public data and pushing to the target branch.

CLI Installation & Local Usage

You can install git-tulkun directly with Cargo or download a prebuilt binary for Linux (x86_64 / aarch64), macOS (aarch64 / x86_64), or Windows (x86_64) from GitHub Releases. git-tulkun collect talks directly to GitHub over HTTPS without requiring the gh CLI:

# Install from source via Cargo
cargo install --git https://github.com/PramudithaN/git-tulkun

# 1. Collect a live GitHub account snapshot (supports --window annual or --window rolling)
git-tulkun collect <GITHUB_USERNAME> --window annual --output snapshot.json

# 2. Render tulkun.gif, tulkun.webp, share-card.webp (1280x640), and preview.html
git-tulkun render snapshot.json --output-dir tulkun --view side

# 3. Demo mode (preview any contribution count without GitHub authentication)
git-tulkun demo --commits 60   --output-dir tulkun-calf
git-tulkun demo --commits 800  --output-dir tulkun-adolescent
git-tulkun demo --commits 2800 --output-dir tulkun-bull --view dive
git-tulkun demo --commits 2800 --output-dir tulkun-breach --view breach

Disclaimer & License

Unofficial Fan Project: git-tulkun is an independent, non-commercial, fan-made open-source software project inspired by Avatar: The Way of Water. Tulkun and Avatar are trademarks and intellectual property of 20th Century Studios and Lightstorm Entertainment. This project is not affiliated with, endorsed by, or sponsored by 20th Century Studios or Lightstorm Entertainment.

MIT © Pramuditha Nadun

About

Procedural pixel-art Tulkun whale generated from your GitHub contributions and language colors as a looping GIF for your profile README.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

27 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages