@@ -338,7 +338,7 @@ suite('p5.RendererGL', function() {
338338 pg . clear ( ) ;
339339 myp5 . image ( pg , - myp5 . width / 2 , - myp5 . height / 2 ) ;
340340 pixel = myp5 . get ( 0 , 0 ) ;
341- assert . deepEqual ( pixel , [ 0 , 0 , 0 , 255 ] ) ;
341+ assert . deepEqual ( pixel , [ 0 , 255 , 255 , 255 ] ) ;
342342 done ( ) ;
343343 } ) ;
344344
@@ -361,7 +361,7 @@ suite('p5.RendererGL', function() {
361361 pg . background ( 100 , 100 , 100 , 100 ) ;
362362 myp5 . image ( pg , - myp5 . width / 2 , - myp5 . height / 2 ) ;
363363 pixel = myp5 . get ( 0 , 0 ) ;
364- assert . deepEqual ( pixel , [ 100 , 100 , 100 , 255 ] ) ;
364+ assert . deepEqual ( pixel , [ 39 , 194 , 194 , 255 ] ) ;
365365 done ( ) ;
366366 } ) ;
367367
@@ -383,7 +383,7 @@ suite('p5.RendererGL', function() {
383383 pg . clear ( ) ;
384384 myp5 . image ( pg , 0 , 0 ) ;
385385 pixel = myp5 . get ( 0 , 0 ) ;
386- assert . deepEqual ( pixel , [ 0 , 0 , 0 , 255 ] ) ;
386+ assert . deepEqual ( pixel , [ 0 , 255 , 255 , 255 ] ) ;
387387 done ( ) ;
388388 } ) ;
389389
@@ -394,7 +394,7 @@ suite('p5.RendererGL', function() {
394394 pg . background ( 100 , 100 , 100 , 100 ) ;
395395 myp5 . image ( pg , 0 , 0 ) ;
396396 pixel = myp5 . get ( 0 , 0 ) ;
397- assert . deepEqual ( pixel , [ 100 , 100 , 100 , 255 ] ) ;
397+ assert . deepEqual ( pixel , [ 39 , 194 , 194 , 255 ] ) ;
398398 done ( ) ;
399399 } ) ;
400400 } ) ;
@@ -483,14 +483,14 @@ suite('p5.RendererGL', function() {
483483 myp5 . createCanvas ( 10 , 10 , myp5 . WEBGL ) ;
484484 myp5 . noStroke ( ) ;
485485 assert . deepEqual ( [ 122 , 0 , 122 , 255 ] , mixAndReturn ( myp5 . ADD , 0 ) ) ;
486- assert . deepEqual ( [ 0 , 0 , 255 , 255 ] , mixAndReturn ( myp5 . REPLACE , 255 ) ) ;
486+ assert . deepEqual ( [ 0 , 0 , 122 , 122 ] , mixAndReturn ( myp5 . REPLACE , 255 ) ) ;
487487 assert . deepEqual ( [ 133 , 255 , 133 , 255 ] , mixAndReturn ( myp5 . SUBTRACT , 255 ) ) ;
488- assert . deepEqual ( [ 255 , 0 , 255 , 255 ] , mixAndReturn ( myp5 . SCREEN , 0 ) ) ;
489- assert . deepEqual ( [ 0 , 255 , 0 , 255 ] , mixAndReturn ( myp5 . EXCLUSION , 255 ) ) ;
488+ assert . deepEqual ( [ 122 , 0 , 122 , 255 ] , mixAndReturn ( myp5 . SCREEN , 0 ) ) ;
489+ assert . deepEqual ( [ 133 , 255 , 133 , 255 ] , mixAndReturn ( myp5 . EXCLUSION , 255 ) ) ;
490490 // Note that in 2D mode, this would just return black, because 2D mode
491491 // ignores alpha in this case.
492- assert . deepEqual ( [ 133 , 69 , 202 , 255 ] , mixAndReturn ( myp5 . MULTIPLY , 255 ) ) ;
493- assert . deepEqual ( [ 255 , 0 , 255 , 255 ] , mixAndReturn ( myp5 . LIGHTEST , 0 ) ) ;
492+ assert . deepEqual ( [ 133 , 69 , 133 , 255 ] , mixAndReturn ( myp5 . MULTIPLY , 255 ) ) ;
493+ assert . deepEqual ( [ 122 , 0 , 122 , 255 ] , mixAndReturn ( myp5 . LIGHTEST , 0 ) ) ;
494494 assert . deepEqual ( [ 0 , 0 , 0 , 255 ] , mixAndReturn ( myp5 . DARKEST , 255 ) ) ;
495495 done ( ) ;
496496 } ) ;
@@ -517,15 +517,11 @@ suite('p5.RendererGL', function() {
517517 const assertSameIn2D = function ( colorA , colorB , mode ) {
518518 const refColor = testBlend ( myp5 , colorA , colorB , mode ) ;
519519 const webglColor = testBlend ( ref , colorA , colorB , mode ) ;
520- if ( refColor [ 3 ] === 0 ) {
521- assert . equal ( webglColor [ 3 ] , 0 ) ;
522- } else {
523- assert . deepEqual (
524- refColor ,
525- webglColor ,
526- `Blending ${ colorA } with ${ colorB } using ${ mode } `
527- ) ;
528- }
520+ assert . deepEqual (
521+ refColor ,
522+ webglColor ,
523+ `Blending ${ colorA } with ${ colorB } using ${ mode } `
524+ ) ;
529525 } ;
530526
531527 for ( const alpha of [ 255 , 200 ] ) {
0 commit comments