p5js

Generate browser-based p5.js generative art with export to HTML, PNG, GIF, or MP4.

11|Updated May 17, 2026
One-click install
npx skills add https://github.com/StarryCod/cogitum --skill p5js-starrycod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: p5js
Source: https://github.com/StarryCod/cogitum/tree/main/cogitum/data/skills/creative/p5js
Command: npx skills add https://github.com/StarryCod/cogitum --skill p5js-starrycod

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Provides a production-ready pipeline to generate browser-based p5.js sketches, reducing setup friction and delivering polished outputs that run entirely in the browser. It guides concepting, design, coding, preview, and export, enabling artists and developers to ship interactive visuals without server dependencies.

Core Features & Use Cases

  • Production pipeline for interactive and generative art using p5.js, delivering a self-contained HTML file with optional export formats.
  • Modes cover Generative art, Data visualization, Interactive experiences, Animation/motion graphics, 3D scenes, image processing, and audio-reactive visuals.
  • Use Case: a designer briefs a generative poster; the agent generates concept, code, preview, and a publish-ready piece.

Quick Start

Create a browser-based p5.js sketch that renders generative art and exports it as a self-contained HTML file with optional PNG, GIF, and MP4 outputs.

Frequently Asked Questions about p5js

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

FAQPage Schema
How do I export a p5.js sketch to a self-contained HTML file?

To export a p5.js sketch to a self-contained HTML file, you use a production pipeline that generates browser-based interactive visuals without server dependencies. This pipeline handles concepting, coding, preview, and export to deliver a publish-ready HTML file with optional PNG, GIF, and MP4 outputs.

What is generative art and how can I create reproducible browser-based visuals?

Generative art is algorithmic visual content. You can create reproducible browser-based visuals using p5.js by applying seeded randomness and deterministic export options, ensuring your interactive sketches, data visualizations, and motion graphics are consistently reproducible.

Does p5.js work with puppeteer for exporting generative art as PNG, GIF, or MP4?

Yes, p5.js works with puppeteer to export generative art as PNG, GIF, or MP4. Puppeteer provides the browser automation environment needed to capture and render the interactive sketches into these media formats.

Can I use puppeteer to automate p5.js sketch previews without a server?

Yes, you can use puppeteer to automate p5.js sketch previews without a server. The pipeline generates self-contained HTML files that run entirely in the browser, allowing puppeteer to preview and capture outputs directly.

What are the limitations of generating 3D scenes and audio-reactive visuals in p5.js?

Generating 3D scenes and audio-reactive visuals in p5.js requires attention to performance, palettes, and asset referencing. The pipeline provides guidance on these constraints, but complex shader experiments may face browser performance limits during deterministic export.

When do I need deterministic export options for data visualization and motion graphics?

You need deterministic export options for data visualization and motion graphics when reproducibility is required. Using seeded randomness in p5.js ensures that your generated browser-based visual art produces identical outputs across multiple export runs.