MCPcopy
hub / github.com/processing/p5.js / drawSameShape

Function drawSameShape

test/unit/webgpu/p5.RendererWebGPU.js:94–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 test('immediate mode geometry reuses buffers across frames', async function() {
93 // Function to draw the same shape using immediate mode
94 const drawSameShape = () => {
95 myp5.background(255);
96 myp5.beginShape();
97 myp5.vertex(0, 0);
98 myp5.vertex(10, 0);
99 myp5.vertex(5, 10);
100 myp5.endShape();
101 };
102
103 // Draw the shape for the first frame
104 drawSameShape();

Callers 1

Calls 4

backgroundMethod · 0.45
beginShapeMethod · 0.45
vertexMethod · 0.45
endShapeMethod · 0.45

Tested by

no test coverage detected