p5js

Generate p5.js generative art sketches with headless export to video and assets.

Updated May 23, 2026
One-click install
npx skills add https://github.com/zengbaocheng/hermes-tech-hub --skill p5js-zengbaocheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: p5js
Source: https://github.com/zengbaocheng/hermes-tech-hub/tree/main/creative/p5js
Command: npx skills add https://github.com/zengbaocheng/hermes-tech-hub --skill p5js-zengbaocheng

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables artists and developers to build browser-run, self-contained p5.js sketches that produce interactive, generative visuals with a production-ready workflow.

Core Features & Use Cases

  • Self-contained HTML output with inline p5.js or CDN, suitable for quick sharing and offline viewing.
  • Supports multiple modes: Generative art, data visualization, interactive experiences, animation, 3D/WebGL scenes, image processing, and audio-reactive work, with export to HTML, PNG, GIF, MP4, or SVG.
  • Includes a full pipeline (concept → design → code → preview → export → verify) and headless export tooling ( Puppeteer + ffmpeg ) to generate deterministic outputs for videos and assets.

Quick Start

Open the p5.js Skill README or SKILL.md and follow the setup to run a sample sketch in your browser.

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 p5.js sketch to video or images?

Export p5.js generative art using a headless pipeline with Puppeteer and ffmpeg to capture interactive WebGL scenes and render deterministic MP4, GIF, PNG, or SVG assets.

What is the pipeline for creating browser-based generative art with p5.js?

The p5.js generative art pipeline covers concept, design, code, preview, export, and verify stages to produce self-contained HTML files with inline rendering for offline viewing and sharing.

Does p5.js support WebGL shaders and 3D rendering for interactive visuals?

Yes, p5.js supports WebGL shaders and 3D rendering for interactive visuals, enabling the creation of complex generative art and audio-reactive scenes directly in the browser.

Can I build audio-reactive data visualizations that run in a browser using p5.js?

Yes, you can build audio-reactive data visualizations in a browser using p5.js, generating self-contained HTML outputs that support interactive 2D and 3D rendering workflows.

Do I need Puppeteer to generate self-contained HTML files from p5.js sketches?

You do not need Puppeteer to generate self-contained HTML files from p5.js sketches, but it is required for the headless export pipeline to capture and convert interactive visuals into video assets.

What's the best way to share interactive p5.js sketches for offline viewing?

The best way to share interactive p5.js sketches for offline viewing is to output self-contained HTML files with inline p5.js or CDN links, ensuring the generative art runs independently in any browser.