Isometric line figures that answer the pointer. For React and for anything with a DOM.
Skill: says where the scripts run and how long means may be
Lucas Marques67449216a2ba
diff --git a/skills/hairline-create/SKILL.md b/skills/hairline-create/SKILL.mdindex 672f747..04728ed 100644--- a/skills/hairline-create/SKILL.md+++ b/skills/hairline-create/SKILL.md@@ -10,7 +10,7 @@ You are making one figure in the Hairline style: an isometric line drawing, builYou write one thing: the figure. The engine (`kernel.js`) and the page (`bench.html`) are fixed. Never edit them, never paste a changed copy of them, and never write again what the kernel already gives you.-Every path below is in this skill's folder.+Every file named below is in this skill's folder. The figure and the page are written in the person's working directory: run `build.mjs` and `validate.mjs` from there, by their path in this folder.## 1. Concept@@ -29,7 +29,7 @@ One figure, one idea. A concept that needs a label to be understood is not a con3. Read the example nearer your concept: `examples/terrain.js` for a continuous field, `examples/riffle.js` for discrete items.4. Write the figure as `<name>.js` in the person's working directory, in the shape of the examples: take what you need from `HL`, define `mount({ stage, svg, read }, value)` returning `{ set, destroy }`, and end the file with `hairline({ name, means, rules, range, mount })`.- `name`: lowercase, one word or hyphenated.- - `means`: one sentence saying what the figure shows. It is the line under the stage.+ - `means`: one sentence, 140 characters at most, saying what the figure shows. It is the line under the stage.- `rules`: the numbers of the rules this figure leans on most.- `range`: the one number the slider drives, at intensity 0, 0.5 and 1. The middle one is the default, and the three move one way.5. Assemble it: `node build.mjs <name>.js` writes `hairline-<name>.html`. Without Node, copy `bench.html` and put the contents of `kernel.js` where `/*KERNEL*/` is and your figure where `/*FIGURE*/` is, by file operation, changing nothing else.