[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EZBKZEBFDV2W7B3V36BZMY":3,"skill-same:01M6EZBKZEBFDV2W7B3V36BZMY":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6EZBKZEBFDV2W7B3V36BZMY","generative-art-algorithms",null,"Create algorithmic and generative art using mathematical patterns, noise functions, particle systems, and procedural generation. Covers flow fields, L-systems, fractals, and creative coding foundations. Triggers on generative art, algorithmic art, creative coding, procedural generation, or mathematical visualization requests.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"generative art","generative art algorithms","algorithms","Art","visualization","flow","coding","context","builder","create","design","patterns","three","canvas","foundations","generative-art","creative-coding","algorithmic","procedural","algorithmic art","2026-11-10 10:12:30",false,"---\nname: generative-art-algorithms\ndescription: Create algorithmic and generative art using mathematical patterns, noise functions, particle systems, and procedural generation. Covers flow fields, L-systems, fractals, and creative coding foundations. Triggers on generative art, algorithmic art, creative coding, procedural generation, or mathematical visualization requests.\nlicense: MIT\ngovernance_phases: [build]\norgan_affinity: [organ-ii]\ntriggers: [user-asks-about-generative-art, user-asks-about-fractals, user-asks-about-noise-functions, context:creative-coding]\ncomplements: [algorithmic-art, three-js-interactive-builder, canvas-design]\n---\n\n# Generative Art Algorithms\n\nCreate art through code, mathematics, and emergence.\n\n## Core Philosophy\n\n### Generative Art Principles\n\n1. **Rules create emergence** - Simple rules yield complex results\n2. **Controlled randomness** - Seeded random for reproducibility\n3. **Parameter exploration** - Same algorithm, infinite variations\n4. **Happy accidents** - Bugs as features\n\n### The Creative Coding Loop\n\n```\nIdea → Algorithm → Parameters → Render → Evaluate → Iterate\n   ↑                                                   │\n   └───────────────────────────────────────────────────┘\n```\n\n---\n\n## Noise Functions\n\n### Perlin\u002FSimplex Noise\n\nSmooth, continuous random values perfect for organic motion.\n\n```javascript\n\u002F\u002F p5.js example\nfunction draw() {\n  for (let x = 0; x \u003C width; x++) {\n    for (let y = 0; y \u003C height; y++) {\n      let n = noise(x * 0.01, y * 0.01, frameCount * 0.01);\n      stroke(n * 255);\n      point(x, y);\n    }\n  }\n}\n```\n\n### Noise Parameters\n\n| Parameter | Effect |\n|-----------|--------|\n| Scale (frequency) | Zoom level of noise (smaller = more detail) |\n| Octaves | Layers of detail |\n| Amplitude | Height of values |\n| Time offset | Animate through noise space |\n\n### Noise Applications\n\n- Terrain generation\n- Texture synthesis\n- Organic movement\n- Flow fields\n- Cloud\u002Fsmoke effects\n\n---\n\n## Flow Fields\n\n### Basic Flow Field\n\n```javascript\n\u002F\u002F Generate angle at each grid point from noise\nfunction setup() {\n  createCanvas(800, 800);\n  \n  let resolution = 20;\n  let cols = width \u002F resolution;\n  let rows = height \u002F resolution;\n  \n  for (let y = 0; y \u003C rows; y++) {\n    for (let x = 0; x \u003C cols; x++) {\n      let angle = noise(x * 0.1, y * 0.1) * TWO_PI * 2;\n      \n      \u002F\u002F Draw vector\n      push();\n      translate(x * resolution, y * resolution);\n      rotate(angle);\n      stroke(0);\n      line(0, 0, resolution * 0.8, 0);\n      pop();\n    }\n  }\n}\n```\n\n### Particles in Flow Field\n\n```javascript\nclass Particle {\n  constructor() {\n    this.pos = createVector(random(width), random(height));\n    this.vel = createVector(0, 0);\n    this.acc = createVector(0, 0);\n    this.maxSpeed = 2;\n    this.prevPos = this.pos.copy();\n  }\n  \n  follow(flowField, resolution) {\n    let x = floor(this.pos.x \u002F resolution);\n    let y = floor(this.pos.y \u002F resolution);\n    let index = x + y * floor(width \u002F resolution);\n    let force = flowField[index];\n    this.applyForce(force);\n  }\n  \n  applyForce(force) {\n    this.acc.add(force);\n  }\n  \n  update() {\n    this.vel.add(this.acc);\n    this.vel.limit(this.maxSpeed);\n    this.prevPos = this.pos.copy();\n    this.pos.add(this.vel);\n    this.acc.mult(0);\n  }\n  \n  edges() {\n    if (this.pos.x > width) { this.pos.x = 0; this.prevPos.x = 0; }\n    if (this.pos.x \u003C 0) { this.pos.x = width; this.prevPos.x = width; }\n    if (this.pos.y > width) { this.pos.y = 0; this.prevPos.y = 0; }\n    if (this.pos.y \u003C 0) { this.pos.y = height; this.prevPos.y = height; }\n  }\n  \n  show() {\n    stroke(0, 10);\n    strokeWeight(1);\n    line(this.pos.x, this.pos.y, this.prevPos.x, this.prevPos.y);\n  }\n}\n```\n\n---\n\n## L-Systems\n\n### Grammar Structure\n\n```\nAxiom: Starting string\nRules: Replacement rules\nAngle: Turning angle\nIterations: Recursion depth\n```\n\n### Classic L-Systems\n\n**Fractal Tree**:\n```\nAxiom: F\nRules: F → FF+[+F-F-F]-[-F+F+F]\nAngle: 25°\n```\n\n**Koch Snowflake**:\n```\nAxiom: F\nRules: F → F+F--F+F\nAngle: 60°\n```\n\n**Sierpinski Triangle**:\n```\nAxiom: F-G-G\nRules: F → F-G+F+G-F, G → GG\nAngle: 120°\n```\n\n### L-System Rendering\n\n```javascript\n\u002F\u002F Interpret string as drawing commands\nfunction render(sentence) {\n  for (let char of sentence) {\n    switch(char) {\n      case 'F':\n        line(0, 0, 0, -len);\n        translate(0, -len);\n        break;\n      case '+':\n        rotate(angle);\n        break;\n      case '-':\n        rotate(-angle);\n        break;\n      case '[':\n        push();\n        break;\n      case ']':\n        pop();\n        break;\n    }\n  }\n}\n```\n\n---\n\n## Fractals\n\n### Mandelbrot Set\n\n```javascript\nfunction mandelbrot(x, y, maxIter) {\n  let real = x;\n  let imag = y;\n  \n  for (let i = 0; i \u003C maxIter; i++) {\n    let tempReal = real * real - imag * imag + x;\n    imag = 2 * real * imag + y;\n    real = tempReal;\n    \n    if (real * real + imag * imag > 4) {\n      return i;\n    }\n  }\n  return maxIter;\n}\n```\n\n### Julia Set\n\nSame iteration, different starting point:\n```javascript\nfunction julia(x, y, cx, cy, maxIter) {\n  let real = x;\n  let imag = y;\n  \n  for (let i = 0; i \u003C maxIter; i++) {\n    let tempReal = real * real - imag * imag + cx;\n    imag = 2 * real * imag + cy;\n    real = tempReal;\n    \n    if (real * real + imag * imag > 4) {\n      return i;\n    }\n  }\n  return maxIter;\n}\n```\n\n### Recursive Subdivision\n\n```javascript\nfunction subdivide(x, y, w, h, depth) {\n  if (depth === 0 || w \u003C 2 || h \u003C 2) {\n    rect(x, y, w, h);\n    return;\n  }\n  \n  let splitH = random() > 0.5;\n  \n  if (splitH) {\n    let split = random(0.3, 0.7) * w;\n    subdivide(x, y, split, h, depth - 1);\n    subdivide(x + split, y, w - split, h, depth - 1);\n  } else {\n    let split = random(0.3, 0.7) * h;\n    subdivide(x, y, w, split, depth - 1);\n    subdivide(x, y + split, w, h - split, depth - 1);\n  }\n}\n```\n\n---\n\n## Particle Systems\n\n### Basic Particle\n\n```javascript\nclass Particle {\n  constructor(x, y) {\n    this.pos = createVector(x, y);\n    this.vel = p5.Vector.random2D().mult(random(1, 3));\n    this.acc = createVector(0, 0);\n    this.lifespan = 255;\n    this.size = random(5, 15);\n  }\n  \n  applyForce(force) {\n    this.acc.add(force);\n  }\n  \n  update() {\n    this.vel.add(this.acc);\n    this.pos.add(this.vel);\n    this.acc.mult(0);\n    this.lifespan -= 2;\n  }\n  \n  isDead() {\n    return this.lifespan \u003C= 0;\n  }\n  \n  show() {\n    noStroke();\n    fill(255, this.lifespan);\n    ellipse(this.pos.x, this.pos.y, this.size);\n  }\n}\n```\n\n### Forces\n\n```javascript\n\u002F\u002F Gravity\nlet gravity = createVector(0, 0.1);\nparticle.applyForce(gravity);\n\n\u002F\u002F Attraction to point\nfunction attract(target, particle, strength) {\n  let force = p5.Vector.sub(target, particle.pos);\n  let distance = constrain(force.mag(), 5, 25);\n  force.normalize();\n  let magnitude = strength \u002F (distance * distance);\n  force.mult(magnitude);\n  return force;\n}\n\n\u002F\u002F Repulsion\nfunction repel(target, particle, strength) {\n  return attract(target, particle, -strength);\n}\n```\n\n---\n\n## Color Algorithms\n\n### Palette Generation\n\n```javascript\n\u002F\u002F Complementary\nfunction complementary(hue) {\n  return [(hue + 180) % 360];\n}\n\n\u002F\u002F Triadic\nfunction triadic(hue) {\n  return [(hue + 120) % 360, (hue + 240) % 360];\n}\n\n\u002F\u002F Analogous\nfunction analogous(hue, spread = 30) {\n  return [(hue - spread + 360) % 360, (hue + spread) % 360];\n}\n\n\u002F\u002F Split complementary\nfunction splitComplementary(hue) {\n  return [(hue + 150) % 360, (hue + 210) % 360];\n}\n```\n\n### Color Interpolation\n\n```javascript\n\u002F\u002F Lerp between colors\nfunction lerpColor(c1, c2, t) {\n  colorMode(HSB);\n  return color(\n    lerp(hue(c1), hue(c2), t),\n    lerp(saturation(c1), saturation(c2), t),\n    lerp(brightness(c1), brightness(c2), t)\n  );\n}\n\n\u002F\u002F Palette from noise\nfunction noiseColor(t, palette) {\n  let n = noise(t) * (palette.length - 1);\n  let i = floor(n);\n  let f = n - i;\n  return lerpColor(palette[i], palette[i + 1], f);\n}\n```\n\n---\n\n## Pattern Algorithms\n\n### Truchet Tiles\n\n```javascript\nfunction truchetTile(x, y, size, type) {\n  push();\n  translate(x, y);\n  \n  if (type === 0) {\n    arc(0, 0, size, size, 0, HALF_PI);\n    arc(size, size, size, size, PI, PI + HALF_PI);\n  } else {\n    arc(size, 0, size, size, HALF_PI, PI);\n    arc(0, size, size, size, PI + HALF_PI, TWO_PI);\n  }\n  \n  pop();\n}\n```\n\n### Voronoi\n\n```javascript\n\u002F\u002F Simple Voronoi via distance check\nfunction voronoi(points) {\n  for (let x = 0; x \u003C width; x++) {\n    for (let y = 0; y \u003C height; y++) {\n      let closest = 0;\n      let minDist = Infinity;\n      \n      for (let i = 0; i \u003C points.length; i++) {\n        let d = dist(x, y, points[i].x, points[i].y);\n        if (d \u003C minDist) {\n          minDist = d;\n          closest = i;\n        }\n      }\n      \n      stroke(points[closest].color);\n      point(x, y);\n    }\n  }\n}\n```\n\n---\n\n## Seeded Randomness\n\n```javascript\n\u002F\u002F Use seed for reproducibility\nlet seed = 12345;\nrandomSeed(seed);\nnoiseSeed(seed);\n\n\u002F\u002F Or generate from string\nfunction hashCode(str) {\n  let hash = 0;\n  for (let i = 0; i \u003C str.length; i++) {\n    hash = ((hash \u003C\u003C 5) - hash) + str.charCodeAt(i);\n    hash = hash & hash;\n  }\n  return hash;\n}\n\nrandomSeed(hashCode(\"my-artwork-2024\"));\n```\n\n---\n\n## Creative Coding Tools\n\n| Tool | Language | Best For |\n|------|----------|----------|\n| p5.js | JavaScript | Beginners, web |\n| Processing | Java | Desktop, print |\n| Three.js | JavaScript | 3D, WebGL |\n| TouchDesigner | Visual | Real-time, AV |\n| Hydra | JavaScript | Live visuals |\n| Shadertoy | GLSL | GPU shaders |\n| Nannou | Rust | Performance |\n\n---\n\n---\n\n## Related Skills\n\n### Complementary Skills (Use Together)\n- **[algorithmic-art](..\u002Falgorithmic-art\u002F)** - Complete workflow for creating interactive p5.js generative art\n- **[canvas-design](..\u002Fcanvas-design\u002F)** - Canvas API patterns for custom rendering\n- **[theme-factory](..\u002Ftheme-factory\u002F)** - Design color palettes and visual themes\n\n### Alternative Skills (Similar Purpose)\n- **[three-js-interactive-builder](..\u002Fthree-js-interactive-builder\u002F)** - For 3D generative art with Three.js\n\n### Prerequisite Skills (Learn First)\n- None required - includes foundational creative coding patterns\n\n---\n\n## References\n\n- `references\u002Fnoise-recipes.md` - Noise function patterns\n- `references\u002Fcolor-palettes.md` - Curated color schemes\n- `references\u002Fshader-patterns.md` - GLSL snippets\n","# Generative Art Algorithms\n\nCreate art through code, mathematics, and emergence.\n\n## Core Philosophy\n\n### Generative Art Principles\n\n1. **Rules create emergence** - Simple rules yield complex results\n2. **Controlled randomness** - Seeded random for reproducibility\n3. **Parameter exploration** - Same algorithm, infinite variations\n4. **Happy accidents** - Bugs as features\n\n### The Creative Coding Loop\n\n```\nIdea → Algorithm → Parameters → Render → Evaluate → Iterate\n   ↑                                                   │\n   └───────────────────────────────────────────────────┘\n```\n\n---\n\n## Noise Functions\n\n### Perlin\u002FSimplex Noise\n\nSmooth, continuous random values perfect for organic motion.\n\n```javascript\n\u002F\u002F p5.js example\nfunction draw() {\n  for (let x = 0; x \u003C width; x++) {\n    for (let y = 0; y \u003C height; y++) {\n      let n = noise(x * 0.01, y * 0.01, frameCount * 0.01);\n      stroke(n * 255);\n      point(x, y);\n    }\n  }\n}\n```\n\n### Noise Parameters\n\n| Parameter | Effect |\n|-----------|--------|\n| Scale (frequency) | Zoom level of noise (smaller = more detail) |\n| Octaves | Layers of detail |\n| Amplitude | Height of values |\n| Time offset | Animate through noise space |\n\n### Noise Applications\n\n- Terrain generation\n- Texture synthesis\n- Organic movement\n- Flow fields\n- Cloud\u002Fsmoke effects\n\n---\n\n## Flow Fields\n\n### Basic Flow Field\n\n```javascript\n\u002F\u002F Generate angle at each grid point from noise\nfunction setup() {\n  createCanvas(800, 800);\n  \n  let resolution = 20;\n  let cols = width \u002F resolution;\n  let rows = height \u002F resolution;\n  \n  for (let y = 0; y \u003C rows; y++) {\n    for (let x = 0; x \u003C cols; x++) {\n      let angle = noise(x * 0.1, y * 0.1) * TWO_PI * 2;\n      \n      \u002F\u002F Draw vector\n      push();\n      translate(x * resolution, y * resolution);\n      rotate(angle);\n      stroke(0);\n      line(0, 0, resolution * 0.8, 0);\n      pop();\n    }\n  }\n}\n```\n\n### Particles in Flow Field\n\n```javascript\nclass Particle {\n  constructor() {\n    this.pos = createVector(random(width), random(height));\n    this.vel = createVector(0, 0);\n    this.acc = createVector(0, 0);\n    this.maxSpeed = 2;\n    this.prevPos = this.pos.copy();\n  }\n  \n  follow(flowField, resolution) {\n    let x = floor(this.pos.x \u002F resolution);\n    let y = floor(this.pos.y \u002F resolution);\n    let index = x + y * floor(width \u002F resolution);\n    let force = flowField[index];\n    this.applyForce(force);\n  }\n  \n  applyForce(force) {\n    this.acc.add(force);\n  }\n  \n  update() {\n    this.vel.add(this.acc);\n    this.vel.limit(this.maxSpeed);\n    this.prevPos = this.pos.copy();\n    this.pos.add(this.vel);\n    this.acc.mult(0);\n  }\n  \n  edges() {\n    if (this.pos.x > width) { this.pos.x = 0; this.prevPos.x = 0; }\n    if (this.pos.x \u003C 0) { this.pos.x = width; this.prevPos.x = width; }\n    if (this.pos.y > width) { this.pos.y = 0; this.prevPos.y = 0; }\n    if (this.pos.y \u003C 0) { this.pos.y = height; this.prevPos.y = height; }\n  }\n  \n  show() {\n    stroke(0, 10);\n    strokeWeight(1);\n    line(this.pos.x, this.pos.y, this.prevPos.x, this.prevPos.y);\n  }\n}\n```\n\n---\n\n## L-Systems\n\n### Grammar Structure\n\n```\nAxiom: Starting string\nRules: Replacement rules\nAngle: Turning angle\nIterations: Recursion depth\n```\n\n### Classic L-Systems\n\n**Fractal Tree**:\n```\nAxiom: F\nRules: F → FF+[+F-F-F]-[-F+F+F]\nAngle: 25°\n```\n\n**Koch Snowflake**:\n```\nAxiom: F\nRules: F → F+F--F+F\nAngle: 60°\n```\n\n**Sierpinski Triangle**:\n```\nAxiom: F-G-G\nRules: F → F-G+F+G-F, G → GG\nAngle: 120°\n```\n\n### L-System Rendering\n\n```javascript\n\u002F\u002F Interpret string as drawing commands\nfunction render(sentence) {\n  for (let char of sentence) {\n    switch(char) {\n      case 'F':\n        line(0, 0, 0, -len);\n        translate(0, -len);\n        break;\n      case '+':\n        rotate(angle);\n        break;\n      case '-':\n        rotate(-angle);\n        break;\n      case '[':\n        push();\n        break;\n      case ']':\n        pop();\n        break;\n    }\n  }\n}\n```\n\n---\n\n## Fractals\n\n### Mandelbrot Set\n\n```javascript\nfunction mandelbrot(x, y, maxIter) {\n  let real = x;\n  let imag = y;\n  \n  for (let i = 0; i \u003C maxIter; i++) {\n    let tempReal = real * real - imag * imag + x;\n    imag = 2 * real * imag + y;\n    real = tempReal;\n    \n    if (real * real + imag * imag > 4) {\n      return i;\n    }\n  }\n  return maxIter;\n}\n```\n\n### Julia Set\n\nSame iteration, different starting point:\n```javascript\nfunction julia(x, y, cx, cy, maxIter) {\n  let real = x;\n  let imag = y;\n  \n  for (let i = 0; i \u003C maxIter; i++) {\n    let tempReal = real * real - imag * imag + cx;\n    imag = 2 * real * imag + cy;\n    real = tempReal;\n    \n    if (real * real + imag * imag > 4) {\n      return i;\n    }\n  }\n  return maxIter;\n}\n```\n\n### Recursive Subdivision\n\n```javascript\nfunction subdivide(x, y, w, h, depth) {\n  if (depth === 0 || w \u003C 2 || h \u003C 2) {\n    rect(x, y, w, h);\n    return;\n  }\n  \n  let splitH = random() > 0.5;\n  \n  if (splitH) {\n    let split = random(0.3, 0.7) * w;\n    subdivide(x, y, split, h, depth - 1);\n    subdivide(x + split, y, w - split, h, depth - 1);\n  } else {\n    let split = random(0.3, 0.7) * h;\n    subdivide(x, y, w, split, depth - 1);\n    subdivide(x, y + split, w, h - split, depth - 1);\n  }\n}\n```\n\n---\n\n## Particle Systems\n\n### Basic Particle\n\n```javascript\nclass Particle {\n  constructor(x, y) {\n    this.pos = createVector(x, y);\n    this.vel = p5.Vector.random2D().mult(random(1, 3));\n    this.acc = createVector(0, 0);\n    this.lifespan = 255;\n    this.size = random(5, 15);\n  }\n  \n  applyForce(force) {\n    this.acc.add(force);\n  }\n  \n  update() {\n    this.vel.add(this.acc);\n    this.pos.add(this.vel);\n    this.acc.mult(0);\n    this.lifespan -= 2;\n  }\n  \n  isDead() {\n    return this.lifespan \u003C= 0;\n  }\n  \n  show() {\n    noStroke();\n    fill(255, this.lifespan);\n    ellipse(this.pos.x, this.pos.y, this.size);\n  }\n}\n```\n\n### Forces\n\n```javascript\n\u002F\u002F Gravity\nlet gravity = createVector(0, 0.1);\nparticle.applyForce(gravity);\n\n\u002F\u002F Attraction to point\nfunction attract(target, particle, strength) {\n  let force = p5.Vector.sub(target, particle.pos);\n  let distance = constrain(force.mag(), 5, 25);\n  force.normalize();\n  let magnitude = strength \u002F (distance * distance);\n  force.mult(magnitude);\n  return force;\n}\n\n\u002F\u002F Repulsion\nfunction repel(target, particle, strength) {\n  return attract(target, particle, -strength);\n}\n```\n\n---\n\n## Color Algorithms\n\n### Palette Generation\n\n```javascript\n\u002F\u002F Complementary\nfunction complementary(hue) {\n  return [(hue + 180) % 360];\n}\n\n\u002F\u002F Triadic\nfunction triadic(hue) {\n  return [(hue + 120) % 360, (hue + 240) % 360];\n}\n\n\u002F\u002F Analogous\nfunction analogous(hue, spread = 30) {\n  return [(hue - spread + 360) % 360, (hue + spread) % 360];\n}\n\n\u002F\u002F Split complementary\nfunction splitComplementary(hue) {\n  return [(hue + 150) % 360, (hue + 210) % 360];\n}\n```\n\n### Color Interpolation\n\n```javascript\n\u002F\u002F Lerp between colors\nfunction lerpColor(c1, c2, t) {\n  colorMode(HSB);\n  return color(\n    lerp(hue(c1), hue(c2), t),\n    lerp(saturation(c1), saturation(c2), t),\n    lerp(brightness(c1), brightness(c2), t)\n  );\n}\n\n\u002F\u002F Palette from noise\nfunction noiseColor(t, palette) {\n  let n = noise(t) * (palette.length - 1);\n  let i = floor(n);\n  let f = n - i;\n  return lerpColor(palette[i], palette[i + 1], f);\n}\n```\n\n---\n\n## Pattern Algorithms\n\n### Truchet Tiles\n\n```javascript\nfunction truchetTile(x, y, size, type) {\n  push();\n  translate(x, y);\n  \n  if (type === 0) {\n    arc(0, 0, size, size, 0, HALF_PI);\n    arc(size, size, size, size, PI, PI + HALF_PI);\n  } else {\n    arc(size, 0, size, size, HALF_PI, PI);\n    arc(0, size, size, size, PI + HALF_PI, TWO_PI);\n  }\n  \n  pop();\n}\n```\n\n### Voronoi\n\n```javascript\n\u002F\u002F Simple Voronoi via distance check\nfunction voronoi(points) {\n  for (let x = 0; x \u003C width; x++) {\n    for (let y = 0; y \u003C height; y++) {\n      let closest = 0;\n      let minDist = Infinity;\n      \n      for (let i = 0; i \u003C points.length; i++) {\n        let d = dist(x, y, points[i].x, points[i].y);\n        if (d \u003C minDist) {\n          minDist = d;\n          closest = i;\n        }\n      }\n      \n      stroke(points[closest].color);\n      point(x, y);\n    }\n  }\n}\n```\n\n---\n\n## Seeded Randomness\n\n```javascript\n\u002F\u002F Use seed for reproducibility\nlet seed = 12345;\nrandomSeed(seed);\nnoiseSeed(seed);\n\n\u002F\u002F Or generate from string\nfunction hashCode(str) {\n  let hash = 0;\n  for (let i = 0; i \u003C str.length; i++) {\n    hash = ((hash \u003C\u003C 5) - hash) + str.charCodeAt(i);\n    hash = hash & hash;\n  }\n  return hash;\n}\n\nrandomSeed(hashCode(\"my-artwork-2024\"));\n```\n\n---\n\n## Creative Coding Tools\n\n| Tool | Language | Best For |\n|------|----------|----------|\n| p5.js | JavaScript | Beginners, web |\n| Processing | Java | Desktop, print |\n| Three.js | JavaScript | 3D, WebGL |\n| TouchDesigner | Visual | Real-time, AV |\n| Hydra | JavaScript | Live visuals |\n| Shadertoy | GLSL | GPU shaders |\n| Nannou | Rust | Performance |\n\n---\n\n---\n\n## Related Skills\n\n### Complementary Skills (Use Together)\n- **[algorithmic-art](..\u002Falgorithmic-art\u002F)** - Complete workflow for creating interactive p5.js generative art\n- **[canvas-design](..\u002Fcanvas-design\u002F)** - Canvas API patterns for custom rendering\n- **[theme-factory](..\u002Ftheme-factory\u002F)** - Design color palettes and visual themes\n\n### Alternative Skills (Similar Purpose)\n- **[three-js-interactive-builder](..\u002Fthree-js-interactive-builder\u002F)** - For 3D generative art with Three.js\n\n### Prerequisite Skills (Learn First)\n- None required - includes foundational creative coding patterns\n\n---\n\n## References\n\n- `references\u002Fnoise-recipes.md` - Noise function patterns\n- `references\u002Fcolor-palettes.md` - Curated color schemes\n- `references\u002Fshader-patterns.md` - GLSL snippets\n",{"name":5,"license":15,"triggers":44,"complements":49,"description":7,"organ_affinity":53,"governance_phases":55},[45,46,47,48],"user-asks-about-generative-art","user-asks-about-fractals","user-asks-about-noise-functions","context:creative-coding",[50,51,52],"algorithmic-art","three-js-interactive-builder","canvas-design",[54],"organ-ii",[56],"build","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill generative-art-algorithms",{"tool":71,"command":72},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill generative-art-algorithms",{"tool":74,"command":75},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill generative-art-algorithms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms\u002FSKILL.md",true,[79,85,89,93],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fcolor-palettes.md","REFERENCE","参考文档",4816,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms\u002Freferences\u002Fcolor-palettes.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fnoise-recipes.md",5516,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms\u002Freferences\u002Fnoise-recipes.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fshader-patterns.md",5672,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms\u002Freferences\u002Fshader-patterns.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fworkflow-integration.md",5584,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F18-organvm-skills\u002Fcreative\u002Fgenerative-art-algorithms\u002Freferences\u002Fworkflow-integration.md",[98,124,141,165,192,217],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[105,106,107,108,109,28,110,111,112,113,114,115,116,117,118,119,120,121,122,123],"write","contracts","write contracts","storage","secure","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[131,132,133,134,135,136,137,138,139,140],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":39},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[],[56,148,149,150,151,152,153,154,132,155,156,157,105,158,159,160,161,162,163,164],"solo","solo build","MCP","workflow","commit","tasks","code","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":39},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[],[172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","use","html","resend","visual","emails","rendering","with",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":39},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[],[199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216],"testing","api","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":218,"name":219,"nameZh":6,"description":220,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":221,"categories":222,"keywords":223,"publishedAt":39},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[156,224,225,226,227,228,229,110,230,231,232,233,234,185,235,236,191,237],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]