MCPcopy Index your code
hub / github.com/clips/pattern / endpath

Function endpath

pattern/canvas.js:1790–1801  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

1788}
1789
1790function endpath(options) {
1791 /* Draws and returns the current path.
1792 * With {draw:false}, only returns the path so it can be manipulated and drawn with drawpath().
1793 */
1794 var s = _ctx.state;
1795 if (s.autoclosepath) s.path.closepath();
1796 if (!options || options.draw) {
1797 s.path.draw(options);
1798 }
1799 var p=s.path; s.path=null;
1800 return p;
1801}
1802
1803function findpath(points, curvature) {
1804 /* Returns a smooth BezierPath from the given list of points.

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…