Stick-figure canvas animation, motion accessibility, agent skills
12 steps · about 4 h 10 min · Intermediate
- Canvas API - Web APIs (tutorial, MDN Web Docs, 20 min)
Start with the canvas element and 2D drawing basics, which is the surface stick-scene draws on.
- Drawing graphics - Learn web development (tutorial, MDN Web Docs, 40 min)
A hands-on lesson that takes you from drawing shapes to animation loops with requestAnimationFrame.
- Performant Game Loops in JavaScript (article, Aleksandr Hovhannisyan, 25 min)
Explains why requestAnimationFrame drives smooth animation and how to keep timing steady.
- Advanced animations - Canvas API - MDN Web Docs (tutorial, MDN Web Docs, 25 min)
Adds velocity, clearing frames and user interaction to your first animation loop.
- Simple Inverse Kinematics (article, Dave Pagurek, 25 min)
Shows how a jointed limb is built by stacking rotations in code, which is how a stick figure's arms and legs move.
- Inverse kinematics (reference, Wikipedia, 15 min)
Gives the vocabulary for forward kinematics (joint angles to pose) versus inverse kinematics (pose to joint angles).
- prefers-reduced-motion: Sometimes less movement is more (article, web.dev, 15 min)
Explains why animations need a reduced-motion fallback, such as the single still frame stick-scene shows.
- prefers-reduced-motion CSS media feature - MDN Web Docs (doc, MDN Web Docs, 10 min)
The reference for detecting the user's motion preference and the OS settings behind it.
- Specification - Agent Skills (doc, agentskills.io, 20 min)
Covers the SKILL.md format that lets a coding agent load instructions like the stick-scene skill.
- Agent Skills - Claude Platform Docs (doc, Anthropic, 20 min)
Shows how an agent discovers a skill and loads it only when a task matches.
- GitHub - nilbuild/stick-scene: Skill to draw stick figure animated visuals (repo, nilbuild on GitHub, 30 min)
Read the real project, a dependency-free canvas runtime packaged as an agent skill, now that you know each part.
- stick-scene: turn one line into a hand-drawn scene (article, Kamran Ahmed, 5 min)
The author's page shows the finished result and the one-line install, so you can try it yourself.