icons.module
README.md
icons
The game's own icon set: 24 x 24 marks cut like stencils, drawn as SVG.
Solid shapes with a 2 px round-ended line for detail, so they read at 16 px over a bright meadow and at 48 px
on a menu. Each icon is authored once here as SVG markup with two placeholders: @I for the main colour and
@P for the second (the "paper" that shows through a cut-out).
local Icons = require("~.modules.icons")
Icons.svg("eye", 24, "#1E2440", "#F6F1E4") -- an <svg> string
Icons.node("tin", 20, "#D9A441") -- a ui `svg` widget node of that size
Icons.pattern("wave", "#1E2440") -- a 12 x 12 mark for a pigment's pattern (accessibility)
Icons.names() -- every icon name, sorted
Icons.has(name)
The mock-ups' icons.js is generated from this file (ORCHESTRATION/gameui_tools/icons2js.mjs).
The interface is documented in the header of init.luau; this file repeats it for the asset browser.