{"category":"generate","endpoint":"https://setget.net/v1/tools/pattern-image","examples":[{"input":{"pattern":"dots"},"title":"Dots"},{"input":{"background":"#fff","foreground":"#000","height":16,"pattern":"checker","scale":8,"width":16},"output":{"height":16,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><defs><pattern id=\"sg34c1c6c4\" width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\"><path d=\"M0 0h4v4h-4zM4 4h4v4h-4z\" fill=\"#000000\"/></pattern></defs><rect width=\"16\" height=\"16\" fill=\"#ffffff\"/><rect width=\"16\" height=\"16\" fill=\"url(#sg34c1c6c4)\"/></svg>","tile":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8\" height=\"8\" viewBox=\"0 0 8 8\"><rect width=\"8\" height=\"8\" fill=\"#ffffff\"/><path d=\"M0 0h4v4h-4zM4 4h4v4h-4z\" fill=\"#000000\"/></svg>","width":16},"title":"A small checkerboard"},{"input":{"background":"#0f172a","foreground":"#2a78d6","pattern":"waves","scale":40},"title":"Waves on a dark background"}],"input_schema":{"additionalProperties":false,"properties":{"background":{"default":"#f8fafc","description":"Background colour: hex, a basic colour name, or \"transparent\".","type":"string"},"foreground":{"default":"#cbd5e1","description":"Pattern colour: hex or a basic colour name.","type":"string"},"height":{"default":320,"description":"Height of the preview image in pixels.","maximum":4000,"minimum":1,"type":"integer"},"pattern":{"default":"dots","description":"The pattern to draw.","enum":["dots","grid","stripes","checker","waves"],"examples":["dots"],"type":"string"},"scale":{"default":24,"description":"Size of one repeating tile in pixels.","maximum":400,"minimum":4,"type":"integer"},"width":{"default":480,"description":"Width of the preview image in pixels.","maximum":4000,"minimum":1,"type":"integer"}},"required":[],"type":"object"},"keywords":["pattern generator","background pattern","svg pattern","seamless pattern","tileable background","dot grid background","stripes"],"related":["gradient-image","placeholder-image"],"slug":"pattern-image","summary":"Make seamless SVG background patterns (dots, grid, stripes, checker or waves) with your colours and scale.","tier":"inline","title":"Background pattern generator","url":"https://setget.net/tools/pattern-image"}
