API & MCP

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

HTTP API

Perspective Guide Generator

Set a horizon, vanishing points and ray density to generate a transparent SVG guide for painting, illustration or animation.

Inputs of Perspective Guide Generator
FieldTypeDefaultDescription
widthinteger1200Canvas width (px)
heightinteger800Canvas height (px)
modeselect (one, two)"two"Perspective
horizonnumber45Horizon from top (%)
firstnumber15First vanishing point from left (%)
secondnumber85Second vanishing point from left (%)
raysinteger16Target rays per point
lineColortext"#4E7FAD"Ray color (six-digit HEX)
horizonColortext"#E88755"Horizon color (six-digit HEX)
opacitynumber40Guide opacity (%)

Example request

A two-point room guide

curl -X POST https://fliplineperspectiveguide.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"width":1200,"height":800,"mode":"two","horizon":45,"first":15,"second":85,"rays":16}'

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": {
    "flipline-perspective-guide": { "type": "http", "url": "https://fliplineperspectiveguide.usefulweb.site/mcp" }
  }
}