()
| 426 | test('stroke and other settings are unaffected after filter', function() { |
| 427 | let c = myp5.createCanvas(5, 5, myp5.WEBGL); |
| 428 | let getShapeAttributes = () => [ |
| 429 | c.states.ellipseMode, |
| 430 | c.drawingContext.imageSmoothingEnabled, |
| 431 | c.states.rectMode, |
| 432 | c.curStrokeWeight, |
| 433 | c.curStrokeCap, |
| 434 | c.curStrokeJoin, |
| 435 | c.curStrokeColor |
| 436 | ]; |
| 437 | let a1 = getShapeAttributes(); |
| 438 | let s = myp5.createFilterShader(frag); |
| 439 | myp5.filter(s); |