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

Method #_start

src/core/main.js:208–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 });
207
208 async #_start() {
209 if (this.hitCriticalError) return;
210 // Find node if id given
211 if (this._userNode) {
212 if (typeof this._userNode === 'string') {
213 this._userNode = document.getElementById(this._userNode);
214 }
215 }
216
217 await this.#_setup();
218 if (this.hitCriticalError) return;
219 if (!this._recording) {
220 this._draw();
221 }
222 }
223
224 async #_setup() {
225 // Run `presetup` hooks

Callers 1

constructorMethod · 0.95

Calls 2

#_setupMethod · 0.95
_drawMethod · 0.95

Tested by

no test coverage detected