Skip to content

Commit 9d4790d

Browse files
committed
added visual test
1 parent 3c953fe commit 9d4790d

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

test/unit/visual/cases/webgl.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,4 +929,19 @@ visualSuite('WebGL', function() {
929929
screenshot();
930930
});
931931
});
932+
933+
visualSuite('background()', function () {
934+
visualTest('background(image) works in WEBGL', function (p5, screenshot) {
935+
p5.createCanvas(50, 50, p5.WEBGL);
936+
937+
const g = p5.createGraphics(50, 50);
938+
g.background(255, 0, 0);
939+
940+
p5.background(0, 0, 255);
941+
p5.background(g);
942+
943+
screenshot();
944+
});
945+
});
946+
932947
});
235 Bytes
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"numScreenshots": 1
3+
}

0 commit comments

Comments
 (0)