Skip to content
Skillpedia
Images & icons260k · #598

p5js

What it does

This skill guides your AI through making creative coding projects with p5.js. It is for artists, designers and developers who want interactive or generative visuals for the web.

When to use it

  • ✓When you want a generative art sketch or an interactive visual that runs in a browser.
  • ✓When you want a data visualization or a particle, flow field or noise-based animation.
  • ✓When you want an export of a sketch as HTML, PNG, GIF, MP4 or SVG.

Skill link

https://github.com/NousResearch/hermes-agent/blob/main/skills/creative/p5js/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/skills/creative/p5js/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

📦 This skill is in these packs

Example of what to ask your AI

“Make a generative art piece in p5.js with flowing particles that react to my mouse, and export a PNG.”

5 new skills a week. 1 minute to read.

How it works

The skill has your AI plan a creative concept, then write p5.js code for the sketch. It can add shaders, audio reactions or 3D scenes, and export the result in several formats.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

p5.js Production Pipeline

When to use

Use when users request: p5.js sketches, creative coding, generative art, interactive visualizations, canvas animations, browser-based visual art, data viz, shader effects, or any p5.js project.

What's inside

Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems, flow fields, shaders (GLSL), pixel manipulation, kinetic typography, WebGL scenes, audio analysis, mouse/keyboard interaction, and headless high-res export.

Creative Standard

This is visual art rendered in the browser. The canvas is the medium; the algorithm is the brush.

Before writing a single line of code, articulate the creative concept. What does this piece communicate? What makes the viewer stop scrolling? What separates this from a code tutorial example? The user's prompt is a starting point — interpret it with creative ambition.

First-render excellence is non-negotiable. The output must be visually striking on first load. If it looks like a p5.js tutorial exercise, a default configuration, or "AI-generated creative coding," it is wrong. Rethink before shipping.

Go beyond the reference vocabulary. The noise functions, particle systems, color palettes, and shader effects in the references are a starting vocabulary. For every project, combine, layer, and invent. The catalog is a palette of paints — you write the painting.

Be proactively creative. If the user asks for "a particle system," deliver a particle system with emergent flocking behavior, trailing ghost echoes, palette-shifted depth fog, and a background noise field that breathes. Include at least one visual detail the user didn't ask for but will appreciate.

Dense, layered, considered. Every frame should reward viewing. Never flat white backgrounds. Always compositional hierarchy. Always intentional color. Always micro-detail that only appears on close inspection.

Cohesive aesthetic over feature count. All elements must serve a unified visual language — shared color temperature, consistent stroke weight vocabulary, harmonious motion speeds. A sketch with ten unrelated effects is worse than one with three that belong together.

Modes

Mode Input Output Reference
Generative art Seed / parameters Procedural visual composition (still or animated) references/visual-effects.md
Data visualization Dataset / API Interactive charts, graphs, custom data displays references/interaction.md
Interactive experience None (user drives) Mouse/keyboard/touch-driven sketch references/interaction.md
Animation / motion graphics Timeline / storyboard Timed sequences, kinetic typography, transitions references/animation.md
3D scene Concept description WebGL geometry, lighting, camera, materials references/webgl-and-3d.md
Image processing Image file(s) Pixel manipulation, filters, mosaic, pointillism references/visual-effects.md § Pixel Manipulation
Audio-reactive Audio file / mic Sound-driven generative visuals references/interaction.md § Audio Input

Stack

Single self-contained HTML file per project. No build step required.

Layer Tool Purpose
Core p5.js 1.11.3 (CDN) Canvas rendering, math, transforms, event handling
3D p5.js WebGL mode 3D geometry, camera, lighting, GLSL shaders
Audio p5.sound.js (CDN) FFT analysis, amplitude, mic input, oscillators
Export Built-in saveCanvas() / saveGif() / saveFrames() PNG, GIF, frame sequence output
Capture CCapture.js (optional) Deterministic framerate video capture (WebM, GIF)
Headless Puppeteer + Node.js (optional) Automated high-res rendering, MP4 via ffmpeg
SVG p5.js-svg 1.6.0 (optional) Vector output for print — requires p5.js 1.x
Natural media p5.brush (optional) Watercolor, charcoal, pen — requires p5.js 2.x + WEBGL
Texture p5.grain (optional) Film grain, texture overlays
Fonts Google Fonts / loadFont() Custom typography via OTF/TTF/WOFF2

Version Note

p5.js 1.x (1.11.3) is the default — stable, well-documented, broadest library compatibi

FAQ

Do I need to know JavaScript?

Some basic knowledge helps, but the skill guides the AI to write and explain the code.

Can it make 3D scenes?

Yes. The skill covers WebGL scenes and 3D rendering with p5.js.

What output formats are available?

The skill lists HTML, PNG, GIF, MP4 and SVG.

Details

Original description by the author

p5.js sketches: gen art, shaders, interactive, 3D.

repo: NousResearch/hermes-agent

Popularity

GitHub stars
260k
Ranking position
#598
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills