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

Function draw

test/types/webgl-pixels.ts:39–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39function draw() {
40 background('#faf8e2')
41 // translate(width/2, height/2)
42
43 for (const blob of blobs) {
44 blob.update()
45 }
46 Matter.Engine.update(engine, 1000 / 60)
47
48 for (const blob of blobs) {
49 blob.drawBlob()
50 }
51}
52
53const BLOB_NODE_SIZE = 20
54const BLOB_NODE_R = 15

Callers

nothing calls this directly

Calls 2

drawBlobMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected