API & MCP

Everything a person can do on Equation Art Studio, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Equation Art Studio

Type x(t) and y(t), or r(θ), or start from a preset (Lissajous, rose, spirograph, butterfly, heart), add rotational symmetry and a colour palette, and get a crisp SVG artwork plus a PNG download. Expressions are parsed safely (no code execution) and support + − × ÷ ^, sin, cos, tan, sqrt, abs, exp, log, pi and e.

Inputs of Equation Art Studio
FieldTypeDefaultDescription
curveselect (parametric, polar, lissajous, rose, spirograph, butterfly, heart)"spirograph"Curve
xExprtext"cos(t) + cos(6t)/2 + sin(14t)/3"x(t). Used for “my own parametric curve”. Variables: t, a, b, c, d. Implicit multiplication works: 2t, 3sin(t).
yExprtext"sin(t) + sin(6t)/2 + cos(14t)/3"y(t)
rExprtext"1 + 0.5*cos(5theta)"r(θ). Used for “my own polar curve”. Write θ as theta or t.
tMintext—t from. A number or constant expression such as 0 or -pi. Empty = preset default (0).
tMaxtext—t to. E.g. 2*pi. Empty = preset default (2π, or a full period for roses and spirographs).
anumber—a. Parameter for presets and your expressions. Empty = preset default.
bnumber—b
cnumber—c
dnumber—d
samplesinteger2000Samples. More samples = smoother curves. Samples × symmetry copies is limited to 24,000.
symmetryinteger1Rotational symmetry (copies)
paletteselect (sunset, ocean, forest, neon, rainbow, mono)"sunset"Palette
strokeWidthnumber2Line width
pngbooleantrueAlso render a PNG download

Example request

Spirograph, sunset palette

curl -X POST https://equationartstudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"curve":"spirograph","a":7,"b":4,"c":3,"samples":2000,"symmetry":1,"palette":"sunset","strokeWidth":2}'

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": {
    "equation-art-studio": { "type": "http", "url": "https://equationartstudio.usefulweb.site/mcp" }
  }
}