Function: builtInPreset()
builtInPreset(
header,content):BrushPreset
Defined in: src/lib/brushes/presets/sized/index.ts:21
A preset that comes with PaintCanvas, by BUILT_IN_AUTHOR.
Parameters
header
content
Returns
Example
builtInPreset({ id: "pencil", name: "Pencil 4px", group: "Sketching", version: "1.0.0" }, { width: 4, height: 4 });
// { "@type": "PaintCanvas/BrushPreset", id: "pencil", ..., author: "PaintCanvas", content: { width: 4, height: 4 } }