illStyle = colors[i];
          ctx.fillRect((i % 4) * 50, Math.floor(i / 4) * 50, 50, 50);
        }

        log("VIC-II Mode: 16 colors, 320x200 resolution");
      }

      function drawSVGADemo() {
        const gradient = ctx.createLinearGradient(
          0,
          0,
          demoCanvas.width,
          demoCanvas.height,
        );
        gradient.addColorStop(0, "red");
        gradient.addColorStop(0.5, "green");
        gradient.addColorStop(1, "blue");

        ctx.fillStyle = gradient;
 