MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / getPathDefinition

Function getPathDefinition

libraries/p5.js:1840–1857  ·  view source on GitHub ↗
(glyph, path)

Source from the content-addressed store, hash-verified

1838var path = _dereq_('./path');
1839
1840function getPathDefinition(glyph, path) {
1841 var _path = path || { commands: [] };
1842 return {
1843 configurable: true,
1844
1845 get: function() {
1846 if (typeof _path === 'function') {
1847 _path = _path();
1848 }
1849
1850 return _path;
1851 },
1852
1853 set: function(p) {
1854 _path = p;
1855 }
1856 };
1857}
1858
1859// A Glyph is an individual mark that often corresponds to a character.
1860// Some glyphs, such as ligatures, are a combination of many characters.

Callers 1

p5.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected