From c6764fd534f7a53f432e98aba5172a268bfee533 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 18:49:42 +0200 Subject: [PATCH] Fix clouds2d: create own canvas element The 2D WebGL renderer now creates its own overlay inside the target element, instead of expecting the target to already be a canvas. This fixes 'canvas.getContext is not a function' when the target is a
. --- background-final.html | 69 ++++++++++++++++++++++++------------------- background.html | 10 +++++-- config.js | 2 +- vendor/clouds2d.js | 59 ++++++++++++++++++------------------ 4 files changed, 77 insertions(+), 63 deletions(-) diff --git a/background-final.html b/background-final.html index 10b55c7..14ac221 100644 --- a/background-final.html +++ b/background-final.html @@ -927,7 +927,7 @@ else window.SunCalc = SunCalc;
-
DEBUG - Palette: Ash▼
+
\nDEBUG - Palette: Ash▼