MCPAsk AI

Search

Search skills, authors and topics

37degree-studio / linejig

linejig

Draws interactive 3D line illustrations in three.js. One object is built from a few rounded solids and drawn in an isometric view (2:1 axonometric) with one fine line width, in line art (white and black, hierarchy by tone) or in the Brand, Dots, Readout and Pencil styles, so all figures keep a consistent illustration style. It builds in (stack or draw-on), then its one hero part (a needle, a lid, the keys of a keyboard) answers hover and click, and the user can drag to turn and zoom it. No capti

Install

npx skills add https://github.com/37degree-studio/linejig --skill linejig

Readout style

The same model as a printed instrument (style: 'readout', ?style=readout), taking the brand colour the same way as the Brand style (brand.md). It lives in its own add-on file, kernel/styles/readout.js (MIT, like the engine), which the kernel imports once, the first time a figure asks for Readout. The walls carry a material printed in wall space: binary digits on one side, the same data as cells on the other, so the object reads as code and machinery.

  • One quiet line on every outline, one width, on Linejig's plate (--plate) with a faint static grain. Tops stay empty.
  • The walls are printed, by the way they face. Walls turned to the left carry rows of 0 and 1 in mono; walls turned to the right carry the shadow side (shade). Both use one cell grid in wall space: u along the wall's top edge, v down from it. They foreshorten with the wall and stay fixed to it as the view turns. The digits are one size across the figure.
  • A band, not a fill. Up to three rows hang from each wall's top edge. The first is crisp, at about the edges' strength, and the next fade; the rest of the wall is plate. Small walls get no texture, and walls too narrow for digits get cells.
  • Grey only; the colour is the hero's. The hero is flat brand colour (top, side a step dimmer, no edge lines) with a soft bloom of its own shape behind it and a small engraved X on its largest top.
  • A dashed footprint under every figure that doesn't draw its own: the base in its own frame (a circle for a round base, a rounded rect for a boxy one), grown by one margin, with parts that stick out left off.
  • The digits scroll slowly along the wall (8 CSS px a second); they stand still under reduced motion and ?freeze. Nothing reacts to the pointer, and the texture never rebuilds a frame.

Settings (createFigure({ readout }), ?readout=band:2,shade:rules, ?shade=bits|rules|dots, or {type: 'readout', value}; all live, no rebuild):

OptionRangeDefaultWhat it does
shadebits, rules, dotsbitsthe shadow side: the digits' data as filled cells, fine lines along the wall, or one dot per cell
row0.006 to 0.030.016the row pitch as a share of the plate's width (one size for the figure)
rowMin, rowMax4 to 12, 8 to 20 px7, 15the row pitch held in this range of CSS px
band1 to 83rows of texture under each wall's top edge
bandFade0.2 to 10.72each row's strength relative to the row above
minCells0 to 20014a wall side under this many cells gets no texture
narrow0 to 83a digit wall under this many cells wide shows cells instead
density0 to 10.8the share of cells kept on a big wall (a fixed per-cell dropout)
denseFrom, denseTo0 to 2000, 10 to 500080, 600wall sizes in cells where the thinning starts and is full
digitA, shadeA0 to 11, 1the digits' and the shadow side's strength
bitSize, dotSize0.2 to 0.9, 0.1 to 0.80.72, 0.34a cell's square and a dot's diameter, as a share of the cell width
rulesPerRow1 to 63rules: lines per row
scroll0 to 40 px/s8how fast the digits move along the wall
grain0 to 0.20.05the plate's grain (0.7 of it on white)
foot, footRadius0 to 0.4, 0 to 0.50.09, 0.12the footprint's margin and corner radius, as shares of the base's size
dash, gap2 to 20 px8, 6the footprint's dash and gap

Ink and glow. A part with fillTone: 'ink' is solid ink, near-black in both themes with a lighter edge on the dark plate, and carries no wall texture. The hero's bloom follows the figure's glow option (glow: false or 0..1, ?glow=0..1).

Dark-first. Readout is drawn for the dark plate. On white it holds (darker digits and cells, edges a step lighter), but it is calmer and the glow is a light tint.

Export. PNG and bitmap exports include the walls and grain. The vector exports (svg, vector) do not: they carry the lines, fills and glow only.

Engine. Readout uses two generic hooks of the kernel: solid() puts o.solid = { F, ring, w0, w1 } on its silhouette, and build() asks a style extension for its own meshes per primitive (primMesh(p, z, N, t0)). A figure that builds its own prisms (with o.top) still gets walls: Readout finds the extrusion from the fill and the cap.