API & MCP

Everything a person can do on SVG Repeat Pattern Generator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

SVG Repeat Pattern Generator

Make repeating dots, squares, diamonds, stripes or checkerboards with adjustable spacing, color and opacity. Preview and download a self-contained SVG with an optional transparent background.

Inputs of SVG Repeat Pattern Generator
FieldTypeDefaultDescription
shapeselect (dot, square, diamond, horizontal-stripe, vertical-stripe, checkerboard)"dot"Mark shape
widthinteger672Canvas width (px)
heightinteger480Canvas height (px)
spacinginteger48Tile spacing (px)
sizeinteger16Mark size (px)
foregroundtext"#264F59"Mark color (six-digit HEX)
backgroundtext"#F5EEDD"Background (six-digit HEX or none)
opacitynumber1Mark opacity

Example request

Ink dots on paper

curl -X POST https://luminarepeatpattern.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"width":672,"height":480,"spacing":48,"size":16,"shape":"dot","foreground":"#264F59","background":"#F5EEDD","opacity":1}'

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)

{
  "mcpServers": {
    "lumina-repeat-pattern": { "type": "http", "url": "https://luminarepeatpattern.usefulweb.site/mcp" }
  }
}