API & MCP
Everything a person can do on Wallpaper Group Pattern Maker (17 Symmetries), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminawallpaperpattern.usefulweb.app/api/v1/calculate– run Wallpaper Group Pattern Maker (17 Symmetries)GET https://luminawallpaperpattern.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Wallpaper Group Pattern Maker (17 Symmetries)
Choose a plane symmetry group from p1 to p6m, a motif or your own SVG path, colors and cell size. Get a seamless repeat tile as SVG, a CSS background snippet and a larger preview built from the International Tables symmetry operations.
| Field | Type | Default | Description |
|---|---|---|---|
group | select (p1, p2, pm, pg, cm, pmm, pmg, pgg, cmm, p4, p4m, p4g, p3, p3m1, p31m, p6, p6m) | "p4g" | Wallpaper group |
motif | select (leaf, comma, letter, wave, kite, custom) | "leaf" | Motif |
path | text | — | Custom SVG path (0–100 box; used with Custom SVG path) |
cell | integer | 120 | Cell width (px) |
stretch | integer | 100 | Cell height for oblique and rectangular lattices (% of width) |
motifSize | number | 30 | Motif size (% of cell width) |
offsetX | number | 30 | Motif position along the first cell edge (%) |
offsetY | number | 12 | Motif position along the second cell edge (%) |
rotation | number | 0 | Motif rotation (degrees) |
colors | text | "#164E63 #E0A33A" | Motif colors (1–6 six-digit HEX, separated by spaces) |
background | text | "#F5EEDD" | Background (six-digit HEX or none) |
coloring | select (by-operation, single) | "by-operation" | Coloring |
width | integer | 720 | Preview width (px) |
height | integer | 480 | Preview height (px) |
Example request
Pinwheel leaves (p4g)
curl -X POST https://luminawallpaperpattern.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"group":"p4g","motif":"leaf","colors":"#164E63 #E0A33A"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://luminawallpaperpattern.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_wallpaper_pattern - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-wallpaper-pattern
{
"mcpServers": {
"lumina-wallpaper-pattern": { "type": "http", "url": "https://luminawallpaperpattern.usefulweb.app/mcp" }
}
}