draw()

A p5.js function that's repeatedly called while the sketch runs. See the p5.js reference for more information.

p5.fab uses the draw() loop to render() a visualization of the machine and toolpaths written in the fabDraw() function. Additional elements can be drawn as desired.

Examples