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

Function drawShape

test/unit/webgl/p5.Geometry.js:275–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 myp5.pixelDensity(1);
274
275 const drawShape = () => {
276 myp5.fill('blue');
277 myp5.stroke(0);
278 myp5.beginShape(myp5.QUAD_STRIP);
279 myp5.vertex(-5, -5);
280 myp5.vertex(5, -5);
281 myp5.vertex(-5, 5);
282 myp5.vertex(5, 5);
283 myp5.endShape();
284 };
285
286 const geom = myp5.buildGeometry(drawShape);
287

Callers 1

p5.Geometry.jsFile · 0.85

Calls 5

fillMethod · 0.45
strokeMethod · 0.45
beginShapeMethod · 0.45
vertexMethod · 0.45
endShapeMethod · 0.45

Tested by

no test coverage detected