const DefaultParams
DefaultParams is the canonical form of the defaults; it renders exactly like "".
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package ebru is a Sinopia engine: Turkish paper marbling, computed. Paint drops are laid on a bath and every drop pus...
Package ebru is a Sinopia engine: Turkish paper marbling, computed. Paint drops are laid on a bath and every drop pushes the boundaries already floating outwards while keeping their area (P' = C + (P - C) * sqrt(1 + r^2 / |P - C|^2)); styluses and combs then drag the paint. The pattern types are the real ebru styles (Battal, Gelgit, Taraklı, Şal, Hatip, Bülbül Yuvası, Çiçekli), drawn originally.
It is a port of the Ebru prototype in the engine gallery (JavaScript), redesigned for the on-chain gas budget: a drop's stretch comes from a 1,024-entry table instead of two square roots per point, combs are one pass over a precomputed displacement table, points beyond the margin are pruned in runs and a point budget bounds the work and the output. frontend/src/engines/ebru.ts is a byte-identical TypeScript twin; ebru_test.gno and ebru.test.ts pin the same golden vectors.
Pure integer maths: no floats, no time, no block data.
DefaultParams is the canonical form of the defaults; it renders exactly like "".
MaxSVGBytes bounds the output (the point budget keeps it far below).
1const ParamsSchema = `{"type":"object","properties":{` +
2 `"pattern":{"type":"string","title":"Pattern","enum":["Seeded","Battal","Gelgit","Taraklı","Şal","Hatip",` +
3 `"Bülbül Yuvası","Çiçekli"],"default":"Seeded"},` +
4 `"palette":{"type":"string","title":"Palette","enum":["Seeded","Lahore & Ochre","Spring","Night","Earth","Sea",` +
5 `"Soot & Gold","Sinopia"],"default":"Seeded"}}}`ParamsSchema is the Studio form. Studio sends JSON.stringify of the values in this property order; ValidateParams accepts exactly that or "".
Manifest describes the engine. Author and FeeBps are set by the adapter.
Render returns the raw SVG for in.Seed and in.Params.
SVG renders seed under cfg.
Traits returns the eight traits of in.Seed in TraitTypes order. It never renders: seven table draws.
ValidateParams accepts "" (the showcase defaults) and the canonical JSON.
Defaults is the showcase look (params "").
ParseParams accepts "" or the canonical JSON Studio produces, nothing else.
TraitsOf returns the traits for seed under cfg.