Skip to content

Instantly share code, notes, and snippets.

View jossmac's full-sized avatar
🤖
LLM Stuff

Joss Mackison jossmac

🤖
LLM Stuff
View GitHub Profile
@jossmac
jossmac / shape-paths.ts
Last active May 21, 2026 01:24
Generate the path data for shapes using familiar e.g. `circle` and `rect` syntax.
const DRAW_DIRECTION = ["clockwise", "anti-clockwise"] as const;
/**
* Generate a complex path string, using familiar SVG shape (`<circle>`,
* `<rect>`, etc.) syntax.
*
* @param data An array of shape objects.
* @param evenodd Alternate drawing direction for each path. When multiple paths are combined into a single string of path data, this will influence whether the paths are additive or subtractive.
* @returns A string of SVG path data representing all shapes.
*
@tomhicks
tomhicks / plink-plonk.js
Last active December 26, 2025 08:35
Listen to your web pages