API & MCP

Everything a person can do on Two-Color Ramp Mixer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Two-Color Ramp Mixer

Interpolate 2–24 opaque colors between two HEX endpoints. Compare encoded sRGB and linear-light mixing, then download HEX, GIMP GPL, JASC-PAL and CSS palettes for your drawing workflow.

Inputs of Two-Color Ramp Mixer
FieldTypeDefaultDescription
fromtext"#30585D"First HEX color
totext"#EBC17E"Second HEX color
countinteger7Ramp colors
spaceselect (linear, srgb)"linear"Mixing space

Example request

Seven drawing colors

curl -X POST https://fliplinecolorramp.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"from":"#30585D","to":"#EBC17E","count":7,"space":"linear"}'

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-color-ramp": { "type": "http", "url": "https://fliplinecolorramp.usefulweb.site/mcp" }
  }
}