{"category":"generate","endpoint":"https://setget.net/v1/tools/gradient-image","examples":[{"input":{"colours":["#2a78d6","#e87ba4"],"height":100,"width":200},"output":{"css":"linear-gradient(90deg, #2a78d6 0%, #e87ba4 100%)","height":100,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"200\" height=\"100\" viewBox=\"0 0 200 100\"><defs><linearGradient id=\"sgfac28adc\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"50\" x2=\"200\" y2=\"50\"><stop offset=\"0%\" stop-color=\"#2a78d6\"/><stop offset=\"100%\" stop-color=\"#e87ba4\"/></linearGradient></defs><rect width=\"200\" height=\"100\" fill=\"url(#sgfac28adc)\"/></svg>","width":200}},{"input":{"colours":["#fde68a","#f97316 40%","#7c2d12"],"type":"radial"},"title":"A radial gradient with a placed stop"}],"input_schema":{"additionalProperties":false,"properties":{"angle":{"default":90,"description":"Direction of a linear gradient in degrees, as in CSS: 0 runs bottom to top, 90 left to right.","maximum":360,"minimum":-360,"type":"number"},"colours":{"description":"Two to twelve colours in order. Add a position to place a stop, such as \"#ff0080 30%\".","examples":[["#2a78d6","#e87ba4"]],"maxItems":12,"type":"array"},"height":{"default":400,"description":"Height in pixels.","maximum":4000,"minimum":1,"type":"integer"},"type":{"default":"linear","description":"Gradient shape.","enum":["linear","radial"],"type":"string"},"width":{"default":800,"description":"Width in pixels.","maximum":4000,"minimum":1,"type":"integer"}},"required":["colours"],"type":"object"},"keywords":["gradient generator","gradient image","svg gradient","css gradient","linear gradient","radial gradient","gradient background"],"related":["pattern-image","placeholder-image","og-card"],"slug":"gradient-image","summary":"Make an SVG image filled with a linear or radial gradient from your colour stops, plus the matching CSS.","tier":"inline","title":"Gradient image generator","url":"https://setget.net/tools/gradient-image"}
