Logo van Algorithmic Art

Algorithmic Art

Organisatie
Navinspire-ia
algorithmic-art

Generates original algorithmic art with p5.js - seeded randomness, flow fields, particle systems, noise and parametric variation - packaged as a self-contained interactive HTML viewer with seed navigation, sliders and PNG export. Use when the user asks to "make generative art", "create a flow field", "build a particle system sketch", "write art with code" or wants a seeded, reproducible p5.js piece. In French "génère de l'art génératif", "crée un flow field avec p5.js" or "fais une oeuvre algorithmique reproductible".

Overzicht

UitgeverNavinspire-ia
Repositorynavin
Skillnaamalgorithmic-art
Sterren
37
Forks
5
Meegeleverde bestanden
2
LicentieAGPL-3.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door Navinspire-ia op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Algorithmic Art in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Navinspire-ia/navin/tree/main/navin/skills/algorithmic-art
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Navinspire-ia/navin.git /tmp/navin
mkdir -p .claude/skills
cp -r /tmp/navin/navin/skills/algorithmic-art .claude/skills/algorithmic-art
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Algorithmic Art in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Algorithmic Art automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Algorithmic Art niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Algorithmic Art

Produce living algorithms, not decorated pictures. A piece made with this skill is a p5.js sketch whose every run is reproducible from a seed, whose character is controlled by a small parameter object, and whose beauty comes from the process (fields, forces, accumulation) rather than from a hand-placed composition. Deliver two things: a short algorithmic philosophy in markdown, and one self-contained HTML file built from templates/viewer.html.

Never imitate a named living artist or reproduce an existing work. Invent the system.

Workflow

  1. Read the request for its seed idea. Extract the mood, the subject, the constraints (colors, size, static or animated). Treat them as a foundation, not a cage. Identify one quiet conceptual thread that someone in the know would feel without it being spelled out (a rhythm, a ratio, a direction of flow).
  2. Write the algorithmic philosophy (3-5 paragraphs, saved as <name>-philosophy.md with write_file). Give the movement a two-word name. Describe how it manifests through processes: which noise or field drives it, what entities exist, how they interact, what accumulates, when the system stops. Say each thing once. Leave implementation room.
  3. Choose the parameters. Ask what the system needs to be tunable: counts, scales, speeds, probabilities, angles, thresholds, palette. Keep 4-8 numeric parameters plus the seed. Put them in one params object with min, max, step metadata so the viewer can build sliders automatically.
  4. Write the algorithm. Open templates/generator_template.js and follow its structure: seeded PRNG, params object, setup() and draw(), entity classes, export helpers. Replace the flow-field example with the system the philosophy demands. Keep randomSeed(seed) and noiseSeed(seed) as the first calls after createCanvas.
  5. Assemble the viewer. Copy templates/viewer.html to the output folder (for example artifacts/<name>.html) and paste the sketch into the marked SKETCH block. Do not restyle the chrome: Ink background, Paper text, one Lime accent. The chrome reads PARAMS and generates the sliders, so no manual control markup is needed.
  6. Render and inspect. Open the file with the browser tool (navigate to file:///..., wait 1500 ms, screenshot). Check that the canvas is not empty, that colors hold together, that nothing is clipped. If p5 failed to load from the CDN, the viewer shows a fallback message; report it rather than hide it.
  7. Explore seeds. Try at least three seeds (the Previous / Next buttons step the seed; the input jumps to one). Adjust ranges if a slider end produces noise or a blank frame. Tune until the default seed is strong on its own.
  8. Show the result. Call present_artifact with type=file on the HTML (or type=html with the content) so the piece appears beside the chat; attach the screenshot as a PNG with present_artifact or open_preview when a quick look is enough. Hand over the philosophy file next to it.

Technical rules

Seeded randomness. Same seed, same image, always. Use the p5 random() and noise() after seeding, or the mulberry32 PRNG in the template when values must be stable across p5 versions. Never call Math.random() inside the algorithm.

Parameter object. One object, flat, numeric values with ranges:

javascript
const PARAMS = {
  seed:       { value: 2024, min: 1, max: 99999, step: 1 },
  count:      { value: 1800, min: 100, max: 6000, step: 50 },
  noiseScale: { value: 0.0025, min: 0.0005, max: 0.01, step: 0.0005 },
  stepLength: { value: 2.2, min: 0.5, max: 6, step: 0.1 },
  steps:      { value: 260, min: 40, max: 800, step: 10 },
  lineAlpha:  { value: 28, min: 4, max: 120, step: 1 },
};

The viewer turns each entry into a labelled slider and calls regenerate() when one moves. Design parameters from the system's needs, not from a menu of pattern types.

Canvas. Square 1200x1200 by default, pixelDensity(1) for predictable export size. Static pieces call noLoop() after the last pass; animated pieces keep draw() running and may stop after N frames. Keep a frame under 50 ms so the sliders stay responsive, or compute in batches across frames.

Palette. Start from the Navin palette and bend it to the philosophy: Ink #17171a or Graphite #121214 grounds, Paper #f4f3ee or Cream #faf9f6 marks, Lime #c6e88a as the single highlight, Teal #0e7490, Sky #0ea5e9, Violet #7c3aed, Coral #ff5f57, Amber #febc2e as supporting tones used sparingly. Map color to a property of the system (velocity, age, density), never to raw random RGB. Two or three hues plus a ground is usually enough.

Export. saveCanvas(name, 'png') is wired to the Download PNG button. For SVG, render once with the p5.js-svg renderer or rebuild the same geometry as <path> strings with the helper in the template (exportSVG(paths)), which works for line-based systems. Name files <movement>-seed<seed>.png.

Craft

  • Balance density: enough marks to read as a field, not so many that it turns to mud. Alpha accumulation (low lineAlpha, many passes) gives depth cheaply.
  • Keep a hierarchy even in chaos: a calm region, a dense region, a direction.
  • Prefer organic constraints: particles born at edges and dying at boundaries, forces that decay, octaves of noise layered at different scales.
  • Reproducibility is a feature; test that two loads of the same seed are pixel-identical.
  • Performance: precompute the field on a grid, reuse vectors, avoid sqrt in inner loops when a squared distance suffices.

Variations

When the user wants a series, do not create several files. Add preset buttons (seed 7, 42, 1337) to the viewer, or a gallery mode that draws six small canvases from consecutive seeds. For a print set, export the chosen seeds as PNG with exec running the viewer under playwright: python3 -c with page.goto(file_url), page.evaluate('setSeed(42); regenerate()'), then page.screenshot.

Files

  • templates/generator_template.js - structure to copy: mulberry32 PRNG, PARAMS with ranges, flow-field particles as the worked example, exportPNG and exportSVG helpers.
  • templates/viewer.html - the chrome: p5 from one CDN with a visible fallback, Ink background, Lime controls, seed input with previous / next / random, slider generation from PARAMS, Regenerate, Reset and Download PNG. Replace only the SKETCH block.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Algorithmic Art?

Generates original algorithmic art with p5.js - seeded randomness, flow fields, particle systems, noise and parametric variation - packaged as a self-contained interactive HTML viewer with seed navigation, sliders and PNG export. Use when the user asks to "make generative art", "create a flow field", "build a particle system sketch", "write art with code" or wants a seeded, reproducible p5.js piece. In French "génère de l'art génératif", "crée un flow field avec p5.js" or "fais une oeuvre algorithmique reproductible".

Waarom Algorithmic Art gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Algorithmic Art bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Algorithmic Art in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Navinspire-ia/navin/tree/main/navin/skills/algorithmic-art. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Algorithmic Art gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Algorithmic Art gebruiken?

Zoveel als je wilt. Je kunt Algorithmic Art gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Algorithmic Art gratis?

Ja. Deze skill is door Navinspire-ia op GitHub gepubliceerd onder de licentie AGPL-3.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇