xiaohongshu
xiaohongshu
algorithmic-art
Expert in generative art, creative coding, and mathematical visualizations using p5.js and JavaScript.
Full skill instructions
Provides creative coding expertise specializing in generative art, mathematical visualizations, and interactive installations using p5.js. Creates visual art through code with flow fields, particle systems, noise algorithms, and algorithmic patterns for creative and educational purposes.
What is the visual goal?
│
├─ **Organic / Natural**
│ ├─ Texture? → **Perlin Noise / Simplex Noise**
│ ├─ Movement? → **Flow Fields / Vector Fields**
│ └─ Growth? → **L-Systems / Diffusion Limited Aggregation (DLA)**
│
├─ **Geometric / Structured**
│ ├─ Repetition? → **Grid Systems / Tilemaps**
│ ├─ Recursion? → **Fractals (Mandelbrot, Sierpinski)**
│ └─ Division? → **Voronoi / Delaunay Triangulation**
│
└─ **Simulation**
├─ Physics? → **Verlet Integration / Springs**
└─ Behavior? → **Boids (Flocking) / Cellular Automata**
| Type | Function | Description |
|---|---|---|
| Uniform | random() | Complete chaos. White noise. |
| Gaussian | randomGaussian() | Bell curve. Most values near mean. |
| Perlin | noise() | Smooth, gradient randomness. "Cloud-like". |
| Seeded | randomSeed() | Deterministic. Same output every time. |
Red Flags → Escalate to threejs-pro:
Goal: Draw a tree using recursion.
Steps:
Branch Function
len.theta.branch(len * 0.67).-theta * 2.branch(len * 0.67).Termination
len < 2.draw()What it looks like:
Why it fails:
Correct approach:
setup().new Particle().What it looks like:
width = 500.Why it fails:
Correct approach:
pixelDensity(2) (or higher).width * 0.5) instead of absolute pixels.What it looks like:
fill(random(255), random(255), random(255))Why it fails:
Correct approach:
Visuals:
pixelDensity).Performance:
Code:
randomSeed() used for reproducibility.windowResized() handles layout changes.Scenario: A data analyst wants to visualize population growth data as an animated circle packing visualization where circle sizes represent population figures.
Approach:
Key Implementation:
// Circle packing with growth animation
function draw() {
background(20);
for (let circle of circles) {
if (!circle.grown) {
circle.grow();
if (circle.grown) {
circle.resolveCollisions(circles);
}
}
circle.display();
}
}
Result: Interactive visualization showing 50 countries with color-coded regions, smooth growth animations, and hover tooltips.
Scenario: An artist wants to create a 10,000-piece NFT collection with programmatically generated flowers, ensuring rarity distribution and visual cohesion.
Approach:
Key Features:
Scenario: A physics teacher needs an interactive demonstration of particle collision and momentum conservation for a high school class.
Approach:
Educational Features:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience