/aimotion:aimotionfrom aimotion
A reference of 166 web graphics techniques with demos, notes, and source code. Use when building motion-graphics or video scenes needing richer visual expression — shaders, particles, physics, typography, transitions, and more.
Ships in aimotion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
aimotion은 웹 기술로 그래픽 영상을 표현하는 방법을 기법 하나당 짧은 데모 하나로 구현한 모음이다.
이 스킬 폴더에 데모 166편이 모두 들어 있다. 편마다 구현 노트(NOTES.md: 데모 장면, 기법과 원리와 main.js:줄, 결정성 전략, 한계), 소스, 그림이 있다.
네트워크 없이 이 폴더의 파일만 읽으면 된다.
데모가 표현한 내용은 절대 그대로 가져가지 않는다. 데모에서는 기술만 배운다. 이 규칙이 다른 모든 안내보다 먼저다. 데모의 장면을 영상에 옮겨 놓으면 색이나 크기, 문구를 바꿨더라도 실패다.
main.js:줄을 모두 읽고, 그림(poster·sheet)으로 기법이 어떻게 보이는지 본다.
왜 그렇게 짰는지 설명할 수 있고, 전혀 다른 소재로 다시 짤 수 있을 때까지 읽는다. 훑어본 겉모습을 흉내 내지 않는다.이 스킬 폴더를 A라 한다. 찾기 스크립트는 S=A/scripts/aimotion.mjs다(Node 18 이상, 의존성 없음).
node $S search 잉크 번짐, node $S search particles 글자 — 제목·기법·배울 점·라이브러리·분류에서 찾아 순위대로 보여 준다.
전체는 node $S list, 또는 A/INDEX.md(분류별 목록, 편마다 데모 장면·배울 점·라이브러리·영상 주의). 목록의 "데모 장면"은 기법을 보여 준 예다. 옮길 장면이 아니다.A/demos/<id>/out/poster.jpg(절정 한 장)와 out/sheet.jpg(1초마다 한 장)를 이미지로 연다. 기법이 어떻게 보이는지 확인하는 용도다. 구도·색·장면을 본뜨지 않는다.A/demos/<id>/NOTES.md(node $S show <id> --notes)를 끝까지 읽는다. "기법과 원리"가 핵심 아이디어와 그것이 있는 main.js:줄을 가리킨다.
첫 절 "화면"은 데모가 무엇을 그렸는지다. 기법이 어디에 쓰였는지 알려 줄 뿐, 가져가지 않는다.A/demos/<id>/의 파일을 그대로 읽는다(node $S show <id> --code는 소스 파일을 차례로 이어 보여 준다).
노트가 가리키는 줄을 모두 읽고, 원리를 설명할 수 있을 때까지 필요한 만큼 더 읽는다. 한 편의 소스는 수만 자일 수 있으니 노트로 길을 잡는다.
데모가 부르는 공통 코드는 A/demos/_lib/(node $S common)에 있다: stage.js(시계·seek·rand·track·ease·replay)와 type.js(글꼴·거리장·윤곽).<id>는 데모 폴더 이름(03-coral-growth)이다. 스크립트에는 번호(3, 103)만 써도 된다.
setup() 굽기 → 영상에서 프레임 전에 한 번frame(t) → 영상의 프레임 함수rand(seed) → 영상의 시드 난수track/ease 키프레임 → 영상 타임라인의 트윈Math.random·Date·타이머·CSS transition은 쓰지 않는다.
상태가 쌓이는 시뮬레이션은 고정 dt로 진행하고 체크포인트에서 다시 계산하거나(demos/_lib/stage.js replay), 미리 구워 둔다.
옮긴 뒤에는 같은 t를 다른 순서로 찾아가도 같은 그림이 나오는지 확인한다.pow는 실제 GPU에서 NaN이 된다. 제곱은 x * x로 쓰고, 밑은 max(x, 0.0)으로 막는다.closePath를 반복하지 않는다.lineCap, setLineDash, globalAlpha, globalCompositeOperation, filter, 변환)를 기본값으로 되돌린다.INDEX.md (opens in a new tab)demos/01-svg-ink/NOTES.md (opens in a new tab)demos/01-svg-ink/index.html (opens in a new tab)demos/01-svg-ink/main.js (opens in a new tab)demos/01-svg-ink/out/poster.jpg (opens in a new tab)demos/01-svg-ink/out/sheet.jpg (opens in a new tab)demos/02-css-popup/NOTES.md (opens in a new tab)demos/02-css-popup/index.html (opens in a new tab)demos/02-css-popup/main.js (opens in a new tab)demos/02-css-popup/out/poster.jpg (opens in a new tab)demos/02-css-popup/out/sheet.jpg (opens in a new tab)demos/02-css-popup/style.css (opens in a new tab)demos/03-coral-growth/NOTES.md (opens in a new tab)demos/03-coral-growth/index.html (opens in a new tab)demos/03-coral-growth/main.js (opens in a new tab)demos/03-coral-growth/out/poster.jpg (opens in a new tab)demos/03-coral-growth/out/sheet.jpg (opens in a new tab)demos/04-sketch-diagram/NOTES.md (opens in a new tab)demos/04-sketch-diagram/index.html (opens in a new tab)demos/04-sketch-diagram/main.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kstost/cokacmotion --plugin aimotionOther plugins' skills for the same job