Integrate Processing's motion graphics capabilities into Claude
  • JavaScript 53.5%
  • HTML 22.7%
  • Shell 8.5%
  • Vue 7%
  • TypeScript 5.6%
  • Other 2.7%
Find a file
Arxchibobo 24b1b7619e Initial release: Processing Creative Skill for Claude Code
Features:
- Claude Code skill for Processing/p5.js creative coding
- 6 visual patterns: particles, flow field, grid, waves, gradients, data viz
- 16 color themes (neon, synthwave, pastel, dark tech, etc.)
- Templates: HTML, React, Vue, Processing Java
- Automation scripts: run sketches, export frames, convert to GIF/MP4
- High-resolution 4K export support
- Interactive pattern showcase page

Patterns:
- flow-field.js - Perlin noise flow fields
- geometric-grid.js - Interactive shape grids
- data-visualization.js - Animated charts
- waves-animation.js - Sine waves, ripples, ocean effects
- gradient-backgrounds.js - Linear, radial, mesh, aurora gradients
- color-themes.js - 16 pre-built color palettes

Templates:
- landing-page-hero.html - Full landing page with animated background
- pattern-showcase.html - Interactive demo of all patterns
- react-p5-component.tsx - React wrapper component
- vue-p5-component.vue - Vue 3 composition API component

Examples:
- particles/particles.pde - Processing particle system
- flowfield/flowfield.pde - Processing flow field with 4K export

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 09:50:42 +08:00
docs Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
examples Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
patterns Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
scripts Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
skill Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
templates Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
.gitignore Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
package.json Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00
README.md Initial release: Processing Creative Skill for Claude Code 2026-01-16 09:50:42 +08:00

Processing Creative Skill for Claude Code

🎨 Generate stunning graphics, animations, and generative art using Processing/p5.js directly from Claude Code.

Transform your frontend design, presentations, and web applications with creative coding capabilities.

Features

  • p5.js Web Integration - Generate animated backgrounds, data visualizations, and interactive elements for web
  • Processing Java Sketches - Create high-resolution graphics and video exports
  • Pattern Library - Ready-to-use generative art patterns (flow fields, particles, geometric grids)
  • React/Vue Components - Drop-in components for modern frameworks
  • Automation Scripts - Run sketches, export frames, convert to GIF/MP4

Quick Start

Installation

# Clone or copy the skill folder
git clone https://github.com/yourusername/processing-creative-skill.git

# Navigate to project
cd processing-creative-skill

# Install dependencies
npm install

# Run setup (checks Processing installation)
npm run setup

Install Processing (Optional, for Java features)

Windows:

choco install processing
# OR download from https://processing.org/download/

macOS:

brew install --cask processing

Linux:

# Download from https://processing.org/download/
tar -xzf processing-*.tgz
cd processing-* && ./install.sh

For Claude Code Integration

Copy the skill file to your Claude Code skills directory:

# Windows
cp skill/processing-creative.md ~/.claude/skills/

# Or add to your project's .claude/skills/ folder

Usage

Invoke the Skill

In Claude Code, the skill auto-activates when you mention:

  • "processing", "p5.js", "generative art"
  • "animated background", "particle system"
  • "creative coding", "visual design code"

Example Prompts

"Create an animated particle background for my landing page"

"Generate a flow field visualization with Perlin noise"

"Design a data visualization for this sales data: [65, 59, 80, 81, 56]"

"Make a geometric grid animation that responds to mouse movement"

"Create a loading animation as a GIF"

Project Structure

processing-creative-skill/
├── skill/
│   └── processing-creative.md    # Claude Code skill definition
├── scripts/
│   ├── run-sketch.ps1            # Run Processing sketches (Windows)
│   ├── run-sketch.sh             # Run Processing sketches (Unix)
│   ├── convert-frames.sh         # Convert frames to GIF/MP4
│   └── install-processing.js     # Installation helper
├── templates/
│   ├── landing-page-hero.html    # Full landing page with animated bg
│   └── react-p5-component.tsx    # React component template
├── patterns/
│   ├── flow-field.js             # Perlin noise flow field
│   ├── geometric-grid.js         # Interactive geometric grid
│   └── data-visualization.js     # Charts and graphs
├── examples/                      # Example sketches
├── docs/                          # Additional documentation
├── package.json
└── README.md

Pattern Library

1. Particle Systems

Interactive particles with connections, trails, and physics.

// Usage in p5.js
// See patterns/particles.js

2. Flow Fields

Organic flowing lines using Perlin noise.

// Usage in p5.js
// See patterns/flow-field.js

3. Geometric Grids

Responsive grids of shapes that react to input.

// Usage in p5.js
// See patterns/geometric-grid.js

4. Data Visualizations

Animated bar charts, line charts, and pie charts.

// Usage in p5.js
// See patterns/data-visualization.js

Scripts

Run a Processing Sketch

PowerShell (Windows):

.\scripts\run-sketch.ps1 -SketchPath "path\to\sketch"
.\scripts\run-sketch.ps1 -SketchPath "path\to\sketch" -Export
.\scripts\run-sketch.ps1 -SketchPath "path\to\sketch" -Present

Bash (Unix/Git Bash):

./scripts/run-sketch.sh path/to/sketch
./scripts/run-sketch.sh path/to/sketch --export
./scripts/run-sketch.sh path/to/sketch --present

Convert Frames to Video

# Convert to GIF
./scripts/convert-frames.sh frames/ output --gif

# Convert to MP4
./scripts/convert-frames.sh frames/ output --mp4

# Convert all formats
./scripts/convert-frames.sh frames/ output --all

# Custom options
./scripts/convert-frames.sh frames/ output --fps 60 --scale 1920:-1

Integration Examples

Landing Page Hero

<!DOCTYPE html>
<html>
<head>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.4/p5.min.js"></script>
</head>
<body>
  <div id="hero">
    <div id="p5-canvas"></div>
    <div class="hero-content">
      <h1>Welcome</h1>
    </div>
  </div>
  <script src="patterns/flow-field.js"></script>
</body>
</html>

React Component

import ParticleBackground from './templates/react-p5-component';

function App() {
  return (
    <div>
      <ParticleBackground particleCount={100} />
      <main>Your content here</main>
    </div>
  );
}

Data Visualization

// Animated bar chart
const data = [65, 59, 80, 81, 56, 55, 40];
const labels = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];

function draw() {
  drawBarChart(window, {
    data,
    labels,
    colors: ['#FF6384', '#36A2EB', '#FFCE56']
  });
}

Export Options

Save PNG (p5.js)

function keyPressed() {
  if (key === 's') {
    saveCanvas('design', 'png');
  }
}

Save GIF (p5.js)

function setup() {
  createCanvas(400, 400);
  saveGif('animation', 5); // 5 seconds
}

Save Frame Sequence

function draw() {
  // ... drawing code
  if (frameCount <= 300) {
    saveCanvas('frame-' + nf(frameCount, 4), 'png');
  }
}

Convert to Video

# Using the included script
./scripts/convert-frames.sh ./frames output --mp4 --fps 60

# Or manually with ffmpeg
ffmpeg -r 60 -i frames/frame-%04d.png -c:v libx264 output.mp4

Color Palettes

Built-in palettes for quick use:

// Neon Night
const NEON = ['#FF006E', '#FB5607', '#FFBE0B', '#8338EC', '#3A86FF'];

// Soft Pastel
const PASTEL = ['#FFB5A7', '#FCD5CE', '#F8EDEB', '#F9DCC4', '#FEC89A'];

// Dark Tech
const TECH = ['#0D1B2A', '#1B263B', '#415A77', '#778DA9', '#E0E1DD'];

// Nature
const NATURE = ['#606C38', '#283618', '#FEFAE0', '#DDA15E', '#BC6C25'];

Dependencies

Required:

  • Node.js >= 18

Optional:

  • Processing 4.x (for Java features)
  • FFmpeg (for video export)

NPM Packages:

  • p5 - p5.js library
  • live-server - Local development server
  • puppeteer - Headless browser for testing

Inspiration

Follow these Processing masters for creative inspiration:

  • @yuruyurau - Geometric patterns, minimalist animations
  • @KomaTebe - Complex generative systems

Resources

License

MIT License - Free to use, modify, and distribute.


Made with 🎨 for creative coding with Claude Code