From 369f08429c616e4bff68a9d69fb362dbc77cb539 Mon Sep 17 00:00:00 2001 From: Damien Seguin Date: Tue, 13 Aug 2024 10:40:26 +0100 Subject: [PATCH] docs: P3 example snippet clearColor clears green instead of red --- p3.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p3.html b/p3.html index 588d95d..40db7d5 100644 --- a/p3.html +++ b/p3.html @@ -71,7 +71,7 @@

Detecting Support

gl.clearColor(0, 1, 0, 1); } else { console.log('Color space support is NOT present'); - gl.clearColor(0, 1, 0, 1); + gl.clearColor(1, 0, 0, 1); } gl.clear(gl.COLOR_BUFFER_BIT);