Loom is a zero-dependency module of various 2D- and 3D-graphics algorithms. Applying statistics, linear algebra, and physics, these algorithms output SVG commands for an SVG engine (e.g., your browser) to draw:
The integeral ∫−22−x5+4x3dx.
A graph from a variation of Eades’s algorithm.
A histogram.
A polar plot of esin(x)−2cos(4x)+sin5(242x−π)
A binary tree from Knuth’s algorithm.
An HV tree.
A scatter plot.
A bar plot.
A binary tree from the Reingold-Tilford algorithm.
A dot plot.
A plot of f(x)=tan(x) in R2.
An n-ary tree drawn from the Buccheim-Unger-Leipert algorithm.