MCPcopy Index your code
hub / github.com/processing/p5.js / augmentFn

Function augmentFn

src/strands/strands_api.js:128–134  ·  view source on GitHub ↗
(fn, p5, name, value)

Source from the content-addressed store, hash-verified

126 * are the correct dual mode implementation.
127 */
128function augmentFn(fn, p5, name, value) {
129 fn[name] = value;
130 const GraphicsProto = p5?.Graphics?.prototype;
131 if (GraphicsProto) {
132 GraphicsProto[name] = value;
133 }
134}
135
136/*
137 * Temporarily augment window, p5.prototype (fn), and p5.Graphics.prototype

Callers 1

initGlobalStrandsAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected