跳到正文
FunCoding

canvas-procedural-animation

Star
84,931
许可证
AGPL-3.0
最近提交
2026年12月2日

.agents/skills/canvas-procedural-animation/SKILL.md

在 GitHub 上查看

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

相似的 Skill

blender-motion-state-inspection

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

精选

algorithmic-art

用 p5.js 生成流场和粒子系统,通过种子随机性创作原创算法艺术。

ANanthropics/skills203k近 7 天新增 3,265 个 star

官方

slack-gif-creator

ANanthropics/skills203k近 7 天新增 3,265 个 star

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,608 个 star

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps147k近 7 天新增 907 个 star

design-motion

GAgarrytan/gstack143k近 7 天新增 598 个 star