endShape()

Finish the current path started with beginShape().

Pass CLOSE to extrude a final segment back to the first vertex, closing the loop. The functionality follows endShape() in p5.js.

Parameters

Name Type Description
mode? string Pass CLOSE to close the path back to the first vertex.

Examples

Syntax

fab.endShape([mode])