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

Function testBlend

test/unit/webgl/p5.RendererGL.js:1337–1340  ·  view source on GitHub ↗
(mode, intended)

Source from the content-addressed store, hash-verified

1335
1336 suite('blendMode()', function() {
1337 var testBlend = function(mode, intended) {
1338 myp5.blendMode(mode);
1339 assert.deepEqual(intended, myp5._renderer.states.curBlendMode);
1340 };
1341
1342 test('blendMode sets _curBlendMode correctly', function() {
1343 myp5.createCanvas(100, 100, myp5.WEBGL);

Callers 2

p5.RendererGL.jsFile · 0.85
assertSameIn2DFunction · 0.85

Calls 9

noStrokeMethod · 0.80
blendModeMethod · 0.45
clearMethod · 0.45
pushMethod · 0.45
backgroundMethod · 0.45
fillMethod · 0.45
rectMethod · 0.45
popMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected