Skip to content
FunCoding

canvas-procedural-animation

Star
84,936
License
AGPL-3.0
Last commit
Dec 2, 2026

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

View on 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

Similar Skills

blender-motion-state-inspection

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

Featured

algorithmic-art

Generate flow fields and particle systems with p5.js, using seeded randomness for original algorithmic art.

ANanthropics/skills203k3,265 new stars in the last 7 days

Official

slack-gif-creator

ANanthropics/skills203k3,265 new stars in the last 7 days

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo147k1,608 new stars in the last 7 days

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps147k907 new stars in the last 7 days

design-motion

GAgarrytan/gstack143k598 new stars in the last 7 days