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

Function Glyph

libraries/p5.js:1864–1868  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

1862//
1863// The `Glyph` class contains utility methods for drawing the path and its points.
1864function Glyph(options) {
1865 // By putting all the code on a prototype function (which is only declared once)
1866 // we reduce the memory requirements for larger fonts by some 2%
1867 this.bindConstructorValues(options);
1868}
1869
1870Glyph.prototype.bindConstructorValues = function(options) {
1871 this.index = options.index || 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected