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 linejigDots style
The same model as a dot matrix (style: 'dots', ?style=dots), taking the brand colour the same way as the Brand
style (brand.md). The kernel renders the figure offscreen in ink codes
(red: ink, green: the hero's share, blue: the outline's share), reduces each screen cell to one value, and draws one
mark per cell. The grid is in screen space, so cells keep their size when zoomed.
- Tone is dot size. Edge lines become rows of the largest dots in the grey ramp (
hitomid); solids get an even halftone, sparse on the top face and denser on the sides, inlo, so they still read as 3D. Empty cells stay plate. - The hero's dots are the brand colour, and only the hero's. The accent fade still crossfades between members.
- Ink parts are ink dots. A part with
fillTone: 'ink'is drawn in near-black dots (--ink) in both themes, grown until they close the grid so it reads solid; on the dark plate its edge dots are a lighter grey. It is never the brand colour. - No glow. The cursor swells dots within about 40 px by 1.25 times, eased.
- A cell takes the strongest ink within about a cell of its centre, with a soft falloff, so a line moving across the grid grows one dot as it shrinks the next instead of popping.
Settings (createFigure({ dots }), ?dots=shape:square,cell:8, or {type: 'dots', value}; all live, no rebuild):
Size-adaptive. With auto, the cell is about the object's on-screen width over across (180; never under 2 CSS px or 1.5
device px, never over cell), eased over 150 ms as it zooms or resizes, so a small plate gets finer cells and full
screen keeps the set look. Below a 500 px object the face halftone thins and the hero's dots get a minimum size, so
edges and the hero's silhouette carry it; glass and openings stay empty.
With the floor grid on (grid: true, from the linejig skill), the grid becomes faint dots.