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

Dots 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 (hi to mid); solids get an even halftone, sparse on the top face and denser on the sides, in lo, 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):

OptionRangeDefaultWhat it does
shapecircle, square, diamond, line, cross, or a registered namecirclethe mark; line is a short dash along the cell's diagonal; registerDotShape(name, glsl) (exported by linejig-pro.js; import it from there before the figure mounts) adds one, GLSL that sets the signed distance d from l, r, ink, dsize, sw
cell2 to 16 px3.5the cell size in CSS px
size0.3 to 10.78the largest mark, as a fraction of the cell
gap0 to 8 px0extra space between cells, apart from the mark size
contrast0.5 to 21how strongly tone maps to size
threshold0 to 0.50.05below this ink, no mark
angle0 to 45 degrees0turns the grid
swell, radius0 to 2, 0 to 120 px1, 40the cursor swell (1 is 1.25 times) and its reach
facesbooltruefaces as halftone; false leaves only the edges as dots
jitter0 to 0.50a small random offset per mark, for a printed feel
heroOnlyboolfalseonly the hero in dots; the rest stays lineart
tintboolfalseevery mark in the brand colour: edges in the colour itself (held to 3:1 on the plate), detail and faces the same hue a step lighter on white, a step dimmer on black, never a brown or grey mix
autobooltrueadapt the cell to the object's size on screen (below)
across40 to 300180with auto, about how many cells span the object

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.