canvas-procedural-animation

Generates procedural character-supporting animations with p5.js canvas including particles, weather, and walk cycles.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill canvas-procedural-animation-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canvas-procedural-animation
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/canvas-procedural-animation
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill canvas-procedural-animation-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating ambient motion effects like rain, snow, leaves, squash-and-stretch, or procedural walk cycles for character animations requires repetitive canvas code. This Skill provides proven p5.js patterns for building these effects without authoring individual SVG parts. ## Core Features & Use Cases - Particle and Weather Overlays: Generate rain, snow, leaves, feathers, and ambient particle systems using p5.js draw loops. - Procedural Body Motion: Implement squash/stretch deformation and walk cycles driven by time-based functions like sin(). - Deterministic Previews: Keep animation state derived from time or frame values so previews render consistently. - Use Case: You are building a 1920x1080 animated scene where a character needs falling snow and a subtle bobbing motion. Use this Skill to scaffold a p5.js sketch with setup() and draw() that renders both effects procedurally. ## Quick Start Use the canvas-procedural-animation skill to create a p5.js sketch with falling snow particles and a bouncing character at 1920x1080.

Frequently Asked Questions about canvas-procedural-animation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create particle effects with p5.js?

Create particle effects in p5.js by initializing state in setup() and updating positions each frame in draw(). Derive motion from time values like millis() so the animation stays deterministic and previewable.

How to make a procedural walk cycle in canvas animation?

Build a procedural walk cycle by driving limb or body positions with periodic functions like sin(t) inside the p5.js draw() loop. This produces continuous motion without authoring individual frames or SVG parts.

When should I use p5.js instead of SVG for character animation?

Use p5.js for ambient effects like rain, snow, particles, and simple procedural bodies. Choose SVG or layered rigs for complex facial acting where individually inspectable parts matter more than generated motion.

Does p5.js animation support frame-exact deterministic rendering?

p5.js redraws continuously through draw(), so exact frame determinism requires the runtime to expose frame-index control. For final renders needing precise frames, verify your environment supports frame-based stepping.

Why is my p5.js animation not redrawing?

p5.js redraws automatically through the draw() loop after setup() runs once. If nothing updates, check that draw() is defined, noLoop() was not called, and state changes are computed from time or frame values.