API & MCP
Everything a person can do on Pressure Brush Stroke Renderer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://fliplinebrushstroke.usefulweb.site/api/v1/calculate– run Pressure Brush Stroke RendererGET https://fliplinebrushstroke.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Pressure Brush Stroke Renderer
Turn normalized points and pressure samples into graphite, ink, marker, pigment-wash, airbrush or watercolor strokes. The watercolor brush adds wet edges, paper granulation and pigment pooling. Download a deterministic PNG and SVG, a reusable brush recipe and an editable Flipline project.
| Field | Type | Default | Description |
|---|---|---|---|
points | textarea | "0.1 0.65 0.2\n0.3 0.3 0.6\n0.6 0.7 1\n0.9 0.35 0.15" | Stroke points: x y pressure (0–1, one point per line) |
width | integer | 800 | Canvas width (px) |
height | integer | 320 | Canvas height (px) |
size | number | 28 | Brush width (px) |
kind | select (ink, pencil, marker, wash, airbrush, watercolor) | "pencil" | Brush style |
color | text | "#30585D" | Ink HEX color |
background | text | "#FFF9EE" | Paper HEX color |
opacity | number | 85 | Pigment opacity (%) |
flow | number | 55 | Pigment flow (%) |
texture | number | 75 | Brush texture (%) |
pressure | boolean | true | Use pressure samples |
seed | integer | 17 | Texture seed |
wet | number | 65 | Watercolor wet edges (%) |
granulation | number | 50 | Watercolor granulation (%) |
pooling | number | 45 | Watercolor pigment pooling (%) |
Example request
A textured pencil stroke
curl -X POST https://fliplinebrushstroke.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"points":"0.1 0.65 0.2\n0.3 0.3 0.6\n0.6 0.7 1\n0.9 0.35 0.15"}'
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://fliplinebrushstroke.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_brush_stroke - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-brush-stroke
{
"mcpServers": {
"flipline-brush-stroke": { "type": "http", "url": "https://fliplinebrushstroke.usefulweb.site/mcp" }
}
}