Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage paintKit.package·originates fromworld 0a0b119f-a…

design

What a mural is meant to be: a grid of cells, each belonging to a pigment or to none.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

design

What a mural is meant to be: a grid of cells, each belonging to a pigment or to none.

A design is authored as rows of characters with a legend, small enough to write by hand, and scaled up to a
canvas by repeating cells. Row 1 of the text is the TOP of the mural; in the design, row index 1 is the bottom
(v grows upward, like the wall).

  local Design = require("~.modules.design")
  local d = Design.fromRows({
      rows = { ".oo.",
               "otto",
               ".oo." },
      legend = { o = "ochre", t = "teal" },       -- any character not in the legend is empty
      scale = 4,                                   -- each character becomes 4 x 4 cells (default 1)
  })
  d.cols, d.rows, d.pigments = { "ochre", "teal" }        -- pigments sorted by name
  d.cells[(row - 1) * d.cols + col]                        -- pigment index (1..) or 0 for none
  Design.count(d)                 -- { total, byPigment = { ochre = n, teal = n }, edge = n }
  Design.tins(d, cellSize, tinPer) -- { ochre = 0.8, teal = 0.2 } tins to fill it once at `tinPer` m2 per tin
  Design.isEdge(d, col, row)      -- a design cell with a neighbour of another pigment or none
  Design.size(d, cellSize)        -- width, height in metres

The interface is documented in the header of init.luau; this file repeats it for the asset browser.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

paintKit.modules.design — what a mural is meant to be: a grid of cells, each belonging to a pigment or to none. A design is authored as rows of characters with a legend, small enough to write by hand, and scaled up to a canvas by repeating cells. Row 1 of the text is the TOP of the mural; in the design, row index 1 is the bottom (v grows upward, like the wall). local Design = require("~.modules.design") local d = Design.fromRows({ rows = { ".oo.", "otto", ".oo." }, legend = { o = "ochre", t = "teal" }, -- any character not in the legend is empty scale = 4, -- each character becomes 4 x 4 cells (default 1) }) d.cols, d.rows, d.pigments = { "ochre", "teal" } -- pigments sorted by name d.cells[(row - 1) * d.cols + col] -- pigment index (1..) or 0 for none Design.count(d) -- { total, byPigment = { ochre = n, teal = n }, edge = n } Design.tins(d, cellSize, tinPer) -- { ochre = 0.8, teal = 0.2 } tins to fill it once at `tinPer` m2 per tin Design.isEdge(d, col, row) -- a design cell with a neighbour of another pigment or none Design.size(d, cellSize) -- width, height in metres

fromRows(spec: any) → any

Build a design from text rows. See the header.

argtypedescription
specany

at(d: any, col: number, row: number) → number

The design value at a cell (0 outside the grid).

argtypedescription
dany
colnumber
rownumber

isEdge(d: any, col: number, row: number) → boolean

Whether a design cell borders a cell of another pigment or an empty one (where sloppy tools do damage).

argtypedescription
dany
colnumber
rownumber

count(d: any) → any

Cell counts: total design cells, per pigment, and edge cells.

argtypedescription
dany

tins(d: any, cellSize: number, tinPer: number) → void

Tins of each pigment needed to fill the design once.

argtypedescription
dany
cellSizenumber
tinPernumber

size(d: any, cellSize: number) → void

Width and height in metres.

argtypedescription
dany
cellSizenumber

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.