()
| 2532 | |
| 2533 | test('It can mask in a shape', function() { |
| 2534 | const mask = () => { |
| 2535 | myp5.background(255); |
| 2536 | myp5.noStroke(); |
| 2537 | myp5.clip(() => myp5.rect(10, 10, 30, 30)); |
| 2538 | myp5.fill('red'); |
| 2539 | myp5.rect(5, 5, 40, 40); |
| 2540 | // console.log(myp5._renderer.canvas.toDataURL()); |
| 2541 | }; |
| 2542 | const pixels = getClippedPixels(myp5.WEBGL, mask); |
| 2543 | |
| 2544 | // Regions where nothing is drawn should be white |
no test coverage detected