Skip to main content

Function: testPreset()

testPreset(content?, header?): BrushPreset

Defined in: src/testing/assets.ts:22

A brush preset with content and any header parts, the rest filled in (a new UUID, the name "Test brush" and the author "Tester").

Parameters​

content?​

BrushConfig = {}

TestHeader = {}

Returns​

BrushPreset

Example​

testPreset({ width: 10 }, { name: "Big" }); // { "@type": "PaintCanvas/BrushPreset", id: "…", name: "Big", ... }