const MaxSVGBytes
MaxSVGBytes: the largest output measured is 15,448 B (5,000 default seeds) and 15,174 B (19,600 renders over every param set); median ~5.5 KB. 2x margin.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package cantiere is a Sinopia showcase engine: isometric maquettes of imaginary hill towns on a ruled drafting sheet,...
Package cantiere is a Sinopia showcase engine: isometric maquettes of imaginary hill towns on a ruled drafting sheet, with red scaffolding for the storeys not yet built ("cantiere" is Italian for building site).
A plan generator writes an N x N height map (N = 6..8); columns are drawn back to front, one anti-diagonal at a time. Columns on one diagonal never overlap, so each diagonal is a handful of merged paths, one per fill, and windows are skewed <pattern> tiles instead of one element per window. That keeps the SVG small (median ~5.5 KB) and the render cheap.
Determinism: the same FNV-1a + splitmix64 stream as Genesis, with separate streams for traits (seed+"|traits") and art (seed+"|art"), so art draws never shift traits. Pure integer math; every division truncates (Go). The TypeScript twin (frontend/src/engines/cantiere.ts) is byte-identical; the golden vectors in cantiere_test.gno pin both.
Params ("" = the showcase): canonical JSON in schema order, e.g. {"light":"Night","material":"Any","plan":"Any","scaffold":true}. A param pins one trait after all trait draws, so the other traits of a seed stay the same in every variant.
MaxSVGBytes: the largest output measured is 15,448 B (5,000 default seeds) and 15,174 B (19,600 renders over every param set); median ~5.5 KB. 2x margin.
1const ParamsSchema = `{"type":"object","properties":{` +
2 `"light":{"type":"string","title":"Light","enum":["Any","Morning","Evening","Noon","Night"],"default":"Any"},` +
3 `"material":{"type":"string","title":"Material","enum":["Any","Tufa","Brick","Travertine","Painted Plaster","Concrete","Basalt"],"default":"Any"},` +
4 `"plan":{"type":"string","title":"Plan","enum":["Any","Hill Town","Ziggurat","Courtyard","Terraces","Towers","Ruin"],"default":"Any"},` +
5 `"scaffold":{"type":"boolean","title":"Scaffolding","default":true}}}`ParamsSchema is the Studio form: three trait pins and a scaffolding switch.
Manifest describes the engine. Author and FeeBps are set by the adapter realm that registers it.
Render returns the raw SVG for in.Seed and in.Params.
SVG renders the artwork for a seed and params; it panics on invalid params.
TraitString is "Type=Value;…" in TraitTypes order (the golden-vector form shared with the TypeScript twin).
Traits returns the nine traits of in.Seed in TraitTypes order. It never renders: a few table draws only.
ValidateParams accepts "" or exactly the canonical params JSON.
ParseParams decodes "" (defaults) or the canonical JSON Studio sends (schema order, no whitespace). Anything else is an error.
TraitsOf returns the decoded traits of a seed; it panics on invalid params.
Params are the decoded collection params.
TraitSet is the decoded properties of a seed; the SVG and the trait list both read it, so picture and metadata cannot disagree.