p5js

Create interactive and generative visual art with p5.js.

Updated May 8, 2026
One-click install
npx skills add https://github.com/gztcode/my-skills --skill p5js-gztcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: p5js
Source: https://github.com/gztcode/my-skills/tree/main/p5js
Command: npx skills add https://github.com/gztcode/my-skills --skill p5js-gztcode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires p5.js, p5.sound.js, ffmpeg, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation of interactive and generative visual art using the p5.js library, enabling users to produce browser-based visual experiences without the need for complex setup or external tools.

Core Features & Use Cases

  • Generative Art: Generate procedural visual compositions based on parameters and seeds.
  • Data Visualization: Create interactive charts and data displays from datasets.
  • Interactive Experiences: Build interactive sketches driven by mouse, keyboard, or touch input.
  • 3D Scenes: Create 3D visualizations with WebGL and p5.js.
  • Audio-Responsive Visuals: Generate visuals that respond to audio input.
  • Export Formats: Output art as HTML, PNG, GIF, MP4, or SVG.
  • Use Case: A designer wants to create an interactive generative art piece that responds to user interaction and audio input. They can use this Skill to quickly prototype and develop their idea.

Quick Start

Use the p5js skill to create a generative art piece based on a provided seed. Example: use p5js with seed=42

Frequently Asked Questions about p5js

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

FAQPage Schema
How do I create generative art and data visualizations in the browser?

You can create generative art and data visualizations in the browser using the p5.js library, which supports procedural visual compositions, interactive charts, and browser-based visual experiences from datasets.

Can I build audio-reactive visuals and 3D scenes with p5.js?

Yes, you can build audio-reactive visuals and 3D scenes with p5.js by utilizing p5.sound.js for audio analysis and WebGL for 3D rendering, enabling interactive experiences driven by mouse, keyboard, or touch input.

What dependencies do I need to render video and handle audio in p5.js?

To render video and handle audio in p5.js, you need the p5.sound.js library for audio analysis and ffmpeg for video rendering, alongside the core p5.js library for 2D/3D rendering and interaction handling.

How do I export interactive p5.js sketches to MP4 or GIF?

You export interactive p5.js sketches to MP4 or GIF using ffmpeg for video rendering, allowing you to output your generative art, 3D scenes, and audio-responsive visuals as HTML, PNG, GIF, MP4, or SVG files.

Does p5.js support advanced techniques like GLSL shaders and pixel manipulation?

Yes, p5.js supports advanced techniques including GLSL shaders, pixel manipulation, noise and particle systems, flow fields, kinetic typography, and WebGL scenes for complex interactive and generative visual art.