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

Function testShape

test/unit/webgl/p5.Camera.js:1148–1151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1146 myp5.fill(255, 0, 0);
1147
1148 const testShape = () => {
1149 myp5.clear();
1150 myp5.rect(-myp5.width, -myp5.height, myp5.width * 2, myp5.height * 2);
1151 };
1152
1153 testShape();
1154 assert.deepEqual(myp5.get(0, 0), [255, 0, 0, 255]);

Callers 1

p5.Camera.jsFile · 0.85

Calls 2

clearMethod · 0.45
rectMethod · 0.45

Tested by

no test coverage detected