Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration
Ships in design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
Use this skill when:
// Basic structure
function setup() {
createCanvas(800, 600);
background(220);
}
function draw() {
ellipse(mouseX, mouseY, 20, 20);
}
let params = {
count: 100,
size: 10,
colorMode: 'HSB',
seed: 42
};
function setup() {
createCanvas(800, 800);
colorMode(params.colorMode);
randomSeed(params.seed);
generate();
}
function generate() {
background(20);
for (let i = 0; i < params.count; i++) {
drawElement(i);
}
}
function drawElement(index) {
// Draw single element
}
let seed = 12345;
function setup() {
createCanvas(800, 800);
randomSeed(seed); // Reproducible results
generatePattern();
}
function generatePattern() {
background(30);
for (let i = 0; i < 100; i++) {
let x = random(width);
let y = random(height);
let size = random(10, 50);
fill(random(255), random(255), random(255));
ellipse(x, y, size);
}
}
function keyPressed() {
if (key === 's') {
saveCanvas('artwork.png');
}
if (key === 'n') {
seed++;
randomSeed(seed);
generatePattern();
}
}
let particles = [];
let noiseScale = 0.01;
function setup() {
createCanvas(800, 800);
background(0);
for (let i = 0; i < 1000; i++) {
particles.push(new Particle());
}
}
function draw() {
particles.forEach(p => {
p.update();
p.show();
});
}
class Particle {
constructor() {
this.pos = createVector(random(width), random(height));
this.vel = createVector(0, 0);
this.acc = createVector(0, 0);
this.maxSpeed = 2;
this.prevPos = this.pos.copy();
}
update() {
let angle = noise(this.pos.x * noiseScale, this.pos.y * noiseScale) * TWO_PI * 2;
this.acc = p5.Vector.fromAngle(angle);
this.vel.add(this.acc);
this.vel.limit(this.maxSpeed);
this.prevPos = this.pos.copy();
this.pos.add(this.vel);
if (this.pos.x > width || this.pos.x < 0) this.pos.x = random(width);
if (this.pos.y > height || this.pos.y < 0) this.pos.y = random(height);
}
show() {
stroke(255, 50);
line(this.prevPos.x, this.prevPos.y, this.pos.x, this.pos.y);
}
}
let axiom = "F";
let sentence = axiom;
let len = 100;
let angle = 25;
function setup() {
createCanvas(800, 800);
background(30);
for (let i = 0; i < 5; i++) {
generate();
}
}
function generate() {
let nextSentence = "";
for (let i = 0; i < sentence.length; i++) {
let current = sentence.charAt(i);
if (current === "F") {
nextSentence += "FF+[+F-F-F]-[-F+F+F]";
} else {
nextSentence += current;
}
}
sentence = nextSentence;
}
function draw() {
turtle(sentence);
}
function turtle(s) {
translate(width / 2, height);
for (let i = 0; i < s.length; i++) {
let current = s.charAt(i);
if (current === "F") {
line(0, 0, 0, -len);
translate(0, -len);
} else if (current === "+") {
rotate(radians(angle));
} else if (current === "-") {
rotate(-radians(angle));
} else if (current === "[") {
push();
} else if (current === "]") {
pop();
}
}
}
let gui;
function setup() {
createCanvas(800, 800);
gui = createGui();
gui.addGlobals('particleCount', 'sizeRange', 'colorMode');
}
function draw() {
background(30);
// Use params from GUI
}
Look for:
**/sketch.js**/generative-art/**/***/creative-coding/**/***/p5js/**/***/algorithmic-art/**/*p5.js, generative art, algorithmic art, creative coding, seeded randomness, procedural generation, flow fields, L-systems, particle systems, Perlin noise, interactive art, parametric design
What SKILL.md sets; muted values are Claude Code's defaults
/design:algorithmic-artfrom design
npx claudepluginhub dxta/claude-code-skills --plugin design5 skills in this plugin
/artifacts-builderSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using React, Tailwind CSS, shadcn/ui/brand-guidelinesApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply./canvas-designCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Other plugins' skills for the same job