A p5.js sketch is drawn on screen, then plotted on paper after a click.
p5.penplotter · p5.js · v0.3.1

Plot from the p5.js editor