canvas-procedural-animation

v2026.09.24

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

GitHub
安装命令
npx skhub add calesthio/canvas-procedural-animation
Markdown
SKILL.md

Canvas Procedural Animation

Use this skill when p5.js or Canvas is used for character-supporting motion: rain, snow, leaves, feathers, ambient particles, squash/stretch, or procedural walk cycles.

Proven Pattern

p5.js runs setup once and redraws continuously through draw(). Keep animation state deterministic from time/frame values when rendering previews.

function setup() {
  createCanvas(1920, 1080);
}

function draw() {
  const t = millis() / 1000;
  clear();
  drawCharacter(width / 2, height / 2 + sin(t * 8) * 8);
}

Use For

  • Particle/weather overlays.
  • Environmental motion.
  • Simple procedural bodies.
  • Effects that do not need individually authored SVG parts.

Avoid For

  • Complex facial acting where SVG/layered rig parts are easier to inspect.
  • Final renders that need exact frame determinism unless the runtime exposes frame-index control.

Sources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

AGPL-3.0

源路径

.agents/skills/canvas-procedural-animation

默认分支

main

最新提交

08e2151

Tree SHA

f0fd29d