line() · rect() · circle() · polygon() · path()
2D Primitives
Five clean marks, shown side by side. Every call uses the library defaults.
Complete composition
const plot = new GysinPlot({ seed: 1960 });
plot.line(42, 180, 126, 180);
plot.rect(176, 134, 92, 92);
plot.circle(360, 180, 92);
plot.polygon([
[498, 126], [552, 180],
[498, 234], [444, 180]
]);
plot.path([
[588, 216], [612, 144], [636, 216],
[660, 144], [684, 216]
]);
plot.draw();
Open the shared composition · no disturbance or export options are involved.
The grey names are screen labels. The five black marks are drawn by p5.gysin.