[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115054":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":15,"starSnapshotCount":15,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},115054,"living-ascii","yusen-dev\u002Fliving-ascii","yusen-dev","Bring a still image to life as a seamless ASCII loop — hundreds of thousands of strands swaying like a school of fish, with ASCII glyphs that turn with them. three.js + custom shaders.",null,"JavaScript",67,3,51,1,0,16,51.41,"MIT License",false,"main",true,[23,24,25,26,27,28,29,30,31,32,33],"animation","ascii","ascii-art","claude-code","claude-skill","creative-coding","generative-art","glsl","shaders","threejs","webgl","2026-11-04 12:01:51","2026-11-22 12:56:25","\u003Cp align=\"right\">\n  \u003Cstrong>English\u003C\u002Fstrong> · \u003Ca href=\".\u002FREADME.zh-CN.md\">简体中文\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fhero.webp\" width=\"100%\" alt=\"living-ascii: the name filled with ASCII grass swaying in the wind\">\n\u003C\u002Fp>\n\n\u003Ch3 align=\"center\">Bring a still image to life as a seamless ASCII loop\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\n  Every blade sways in the wind, and every character turns with the blade beneath it.\u003Cbr>\n  Custom shaders on three.js, rendered live in your browser, exported as an MP4 that loops without a seam.\n\u003C\u002Fp>\n\n\u003Cbr>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fen\u002Fsection-what.svg\" width=\"100%\" alt=\"01 What it does: a still image in, a seamless loop out\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fen\u002Fpipeline.webp\" width=\"100%\" alt=\"The same patch of grass three ways: the still photo, 160k strands, and stroke glyphs. The loupe shows each character is a slanted stroke following the grass\">\n\u003C\u002Fp>\n\n- **Works on your image.** Drop one in; the wind follows the image's own texture by default.\n- **Characters turn.** When a strand turns, the glyph on top of it turns too. It is not a static filter.\n- **Colour stays true.** No blown highlights, no neon, no crushed shadows.\n- **Seamless.** The last frame flows straight back into the first, so it can loop forever.\n\n\u003Cbr>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fen\u002Fsection-how.svg\" width=\"100%\" alt=\"02 How it works: strands sway like a school of fish; glyphs follow\">\n\u003C\u002Fp>\n\n1. **Read the image.** Blur its brightness at two scales to get the big hills and the small tufts, and use a structure tensor to find which way the texture runs at every point.\n2. **Rebuild it as strands.** About 160k strands for a 1080×1772 frame, each a 7-segment ribbon carrying the colour of the patch it covered at rest.\n3. **Move them like a school of fish.** Turning waves sweep across, sub-groups drift and turn at their own moments, the whole field leans slowly, and each strand adds a little motion of its own. Tips lag roots, so every turn whips up the strand.\n4. **Light.** A sun swings around the image's own light direction, light pools drift through cloud gaps, and strands flash as they turn across the sun.\n5. **ASCII.** A second pass records each strand's heading. Every 5×7 cell picks one of 32 stroke glyphs (8 angles × 4 weights) to match. Each weight lights the same number of pixels at every angle, so horizontal strands don't read darker than diagonal ones. Colour is solved per cell so it averages back to the image.\n6. **Loop.** Every moving term repeats a whole number of times per loop.\n\n\u003Cbr>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fen\u002Fsection-start.svg\" width=\"100%\" alt=\"03 Get started: run it yourself, or hand it to Claude Code\">\n\u003C\u002Fp>\n\n### Just want the wallpaper?\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fassets\u002Freadme\u002Fwallpapers.webp\" width=\"100%\" alt=\"The grass loop as a 16:9 desktop wallpaper and a tall phone wallpaper\">\n\u003C\u002Fp>\n\n| Download | Size |\n|---|---|\n| [**Desktop**](https:\u002F\u002Fgithub.com\u002Fyusen-dev\u002Fliving-ascii\u002Freleases\u002Fdownload\u002Fwallpapers-v1\u002Fgrass-desktop-4k.mp4) | 3840×2160 (4K, 16:9) |\n| [**Phone**](https:\u002F\u002Fgithub.com\u002Fyusen-dev\u002Fliving-ascii\u002Freleases\u002Fdownload\u002Fwallpapers-v1\u002Fgrass-phone.mp4) | 1290×2796 |\n\nEach is a 12-second loop at 30 fps. The last frame flows straight back into the first, so it repeats without a jump. To set it:\n\n- **Windows**: import the video into Wallpaper Engine.\n- **Mac**: macOS can't use a video as a wallpaper by itself. Install a live-wallpaper app from the App Store and add the video.\n- **Android**: most phones can set a video as a live wallpaper straight from the gallery.\n- **iPhone**: iOS has no looping video wallpaper. You can turn a few seconds into a Live Photo for the lock screen.\n\nFor your own image or your screen's exact size, see **Make a wallpaper** below.\n\n### Option 1 · Run it yourself\n\nRequires [Node.js](https:\u002F\u002Fnodejs.org) 18+.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fyusen-dev\u002Fliving-ascii.git\ncd living-ascii\nnpm install\nnpm start\n```\n\nOpen \u003Chttp:\u002F\u002Flocalhost:5177> to see the sample. To use your own image, put it in `input\u002F` and open `http:\u002F\u002Flocalhost:5177\u002F?img=input\u002Fyour-image.jpg`.\n\n**Export a video.** Add `&export=ascii,flow` to the URL and keep the tab in front until it says `done`. You get `out\u002Fyour-image-ascii.mp4` and `out\u002Fyour-image-flow.mp4` (the strands without the ASCII layer). Then check the loop has no visible jump:\n\n```bash\nnpm run check -- out\u002Fyour-image-ascii.mp4\n```\n\n**Make a wallpaper.** Set `width` and `height` to your screen's resolution, e.g. `&width=2560&height=1600`. The image is cropped to that shape, and `focus=0.5,0.3` picks which part to keep (0–1 across, 0–1 down). Render at the screen's full resolution: the characters are 5×7 pixels, so they blur if the video is scaled up.\n\n### Option 2 · Hand it to Claude Code\n\nInstall the repo as a skill:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fyusen-dev\u002Fliving-ascii.git ~\u002F.claude\u002Fskills\u002Fliving-ascii\n```\n\nThen give Claude Code your image and say:\n\n```text\nUse living-ascii to bring this image to life as an ASCII loop\n```\n\n[`SKILL.md`](SKILL.md) walks it through the whole job: judging whether the image suits the effect, tuning wind and light, exporting, then checking the loop, the motion and the colour.\n\n### Best images\n\nAnything made of many fine strokes running in a direction: grass, wheat, fur, hair, reeds, brush-stroke paintings, wind-swept water. Hard-edged subjects (buildings, faces, text) work less well, because the strands smear their outlines.\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>All options\u003C\u002Fstrong>\u003C\u002Fsummary>\n\u003Cbr>\n\nAll set in the URL, e.g. `?img=input\u002Fx.jpg&wind=20&amp=1.3`.\n\n| Parameter | Default | What it does |\n|---|---|---|\n| `img` | the sample | Image to bring to life (path inside the repo) |\n| `mode` | `ascii` | `ascii` or `flow` (strands only). Press **M** to switch |\n| `width` | `1080` | Output width in px |\n| `height` | follows the image | Output height in px. With `width` also set, the image is cropped to that shape |\n| `focus` | `0.5,0.5` | Which part of the image to keep when cropping (0–1 across, 0–1 down) |\n| `wind` | `auto` | Wind direction in degrees (0 = right, 90 = up). `auto` follows the texture's own direction |\n| `light` | `130` | Where the light in your image comes from, in degrees (130 = upper left) |\n| `amp` | `1` | Sway amount |\n| `density` | `1` | Strand count multiplier |\n| `loop` | `12` | Loop length in seconds |\n| `fps` | `30` | Export frame rate |\n| `t` | — | Freeze at a point in the loop (0–1), for stills |\n| `export` | — | `ascii`, `flow` or both: render one loop and encode MP4s |\n\nSpace pauses.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Files\u003C\u002Fstrong>\u003C\u002Fsummary>\n\u003Cbr>\n\n```\nsrc\u002Fmaps.js      image → height and strand-direction maps\nsrc\u002Ffield.js     strands, motion and light (vertex + fragment shaders)\nsrc\u002Fascii.js     the ASCII layer: stroke atlas and per-cell colour solve\nsrc\u002Fpost.js      render targets, flow grade, mode switch\nsrc\u002Fmain.js      URL options, live preview, frame export\nserver.mjs       local server + ffmpeg encoding\nscripts\u002Fcheck-loop.mjs   seamless-loop check\nSKILL.md         instructions for Claude Code \u002F AI agents\n```\n\n\u003C\u002Fdetails>\n\n\u003Cbr>\n\n\u003Cp align=\"center\">\n  MIT licensed\n\u003C\u002Fp>\n","这是一个将静态图像实时转化为无缝循环ASCII动画的Web工具，核心是基于Three.js与自定义GLSL着色器实现的生成式视觉系统。它将输入图像解析为约16万根动态‘草叶’状粒子流，每根粒子根据图像纹理方向、光照和结构张量独立运动，并驱动对应ASCII字符（32种角度\u002F粗细组合）同步旋转与着色，保持色彩保真与视觉连贯性；最终导出无接缝MP4循环视频。适用于数字艺术创作、动态壁纸生成、创意编程教学及ASCII艺术实验等需要将图像语义转化为程序化动态文本表现的场景。",2,"2026-11-24 04:50:13","CREATED_QUERY"]