Skip to content
Skillpedia
Motion & animation75k · #2644

canvas-procedural-animation

What it does

This skill adds code-driven motion like weather, particles, and simple walks to animated scenes. It is for animators who want natural background motion without drawing every frame.

When to use it

  • ✓When a scene needs rain, snow, leaves, or other ambient particles.
  • ✓When a character needs a simple procedural walk or squash and stretch.
  • ✓When you want environmental motion added to a scene without hand-drawn frames.

Skill link

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/canvas-procedural-animation/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/canvas-procedural-animation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Add falling leaves and a gentle wind effect to the park scene in my animation.”

5 new skills a week. 1 minute to read.

How it works

The agent writes drawing code that updates each frame based on time, so the motion is smooth. It uses p5.js or Canvas for particles and simple body motion.

Technical content (original SKILL.md)

Original text by the author, straight from 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

FAQ

When should I not use it?

Avoid it for complex facial acting, where layered parts are easier to inspect.

Is every frame exactly repeatable?

Not always. Final renders may need a runtime that controls frame timing.

What does it use?

It uses p5.js and the HTML Canvas drawing system.

Details

Original description by the author

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

repo: calesthio/OpenMontage

Popularity

GitHub stars
75k
Ranking position
#2644
License
AGPL-3.0
Updated
10/28/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills