Log inGet started
World

Ironspine

Branchmain
Branchesmain
Commit9a7cce6233

README.md

assets/ui/art.module — the drawn material of the interface

Everything the UI is made of that is not layout.

  • Colour — Art.C translates Game.PALETTE into CSS strings once, so the screens and the world can never drift apart. Art.hex, Art.rgba, Art.mix and Art.grip(fraction) build the rest.
  • Type — Art.FONT.display (Anton), .tech (BerkeleyMono), .body (Arimo).
  • Chrome — Art.abs, Art.rule, Art.TICKS, Art.RAIN, Art.enter, Art.loop.
  • Art — Art.TOWER (the Ironspine drawn as a tapering stack of vertebrae with ribs, plating, wreckage, torn cabling and the dark crown ring), Art.RETICLE, Art.HOLD_RING, Art.CROWN, Art.PITON, Art.handSVG, Art.mouseSVG, Art.arcSVG, Art.windSVG, Art.keyCap.

Two rules learned here and kept:

  • A wrapping label must not carry its own width — the measure goes on a wrapper box, which is what Art.para builds.
  • Text inside SVG markup does not use the engine's registered fonts, so Art.keyCap is a styled box with a real label rather than SVG <text>.

Nothing here reads or writes game state; it is pure drawing.