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

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.

Inputs of Pressure Brush Stroke Renderer
FieldTypeDefaultDescription
pointstextarea"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)
widthinteger800Canvas width (px)
heightinteger320Canvas height (px)
sizenumber28Brush width (px)
kindselect (ink, pencil, marker, wash, airbrush, watercolor)"pencil"Brush style
colortext"#30585D"Ink HEX color
backgroundtext"#FFF9EE"Paper HEX color
opacitynumber85Pigment opacity (%)
flownumber55Pigment flow (%)
texturenumber75Brush texture (%)
pressurebooleantrueUse pressure samples
seedinteger17Texture seed
wetnumber65Watercolor wet edges (%)
granulationnumber50Watercolor granulation (%)
poolingnumber45Watercolor 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)

{
  "mcpServers": {
    "flipline-brush-stroke": { "type": "http", "url": "https://fliplinebrushstroke.usefulweb.site/mcp" }
  }
}