p5js

Generate interactive p5.js visual art and 3D graphics with export.

9|Updated Jul 1, 2026
One-click install
npx skills add https://github.com/Cyapstaye/Adame_ver.open --skill p5js-cyapstaye
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: p5js
Source: https://github.com/Cyapstaye/Adame_ver.open/tree/main/skills/creative/p5js
Command: npx skills add https://github.com/Cyapstaye/Adame_ver.open --skill p5js-cyapstaye

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires puppeteer, ffmpeg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill solves the complexity of setting up generative art environments by providing a streamlined, browser-based pipeline for creating, previewing, and exporting interactive visual media.

Core Features & Use Cases

  • Generative Art Pipeline: Create procedural visual compositions, particle systems, and flow fields with seeded randomness for reproducibility.
  • Interactive & 3D Media: Build WebGL-based 3D scenes, audio-reactive visualizations, and mouse-driven interactive experiences.
  • Multi-Format Export: Seamlessly export sketches as high-resolution PNGs, GIFs, MP4 videos, or vector SVG files.

Quick Start

Use the p5js skill to generate a 3D particle system sketch that reacts to mouse movement and export it as a high-resolution PNG.

Frequently Asked Questions about p5js

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

FAQPage Schema
How do I export generative art from a browser canvas to an MP4 video?

You can export generative art to MP4 video by running p5.js sketches in a headless browser via Puppeteer and encoding the output using ffmpeg. This pipeline captures canvas animations directly and renders high-quality video files without manual screen recording.

Can I create 3D WebGL scenes in p5.js that react to mouse movement?

Yes, you can build interactive 3D scenes in p5.js using WebGL. The skill facilitates binding mouse input to camera or geometry transformations, enabling you to generate dynamic visual art that responds to user interaction in real time.

What is the best way to ensure my procedural visual compositions are reproducible?

To ensure procedural visual compositions are reproducible, you should use seeded randomness when generating particle systems or flow fields. This approach locks the random number generator state, allowing identical generative art outputs across multiple runs.

Do I need a modern web browser to render p5.js sketches headlessly?

Yes, a modern web browser is required for headless rendering of p5.js sketches. The skill uses Puppeteer to automate this browser environment, allowing you to execute canvas and WebGL graphics generation in the background without a graphical interface.

Can I export interactive canvas sketches as vector SVG files?

Yes, the skill supports exporting canvas sketches as vector SVG files. This allows you to scale generated procedural compositions and motion graphics to any resolution without pixelation, separating vector output from raster formats like PNG.

Why use ffmpeg with p5.js for generative art instead of standard GIF export?

Using ffmpeg with p5.js allows you to export high-quality MP4 video instead of standard GIF files. This approach handles complex frame sequences and audio-reactive visualizations more efficiently, providing better compression and visual fidelity for generative art.