From b0d66d5c78090e7988241b01ee6de702262d752b Mon Sep 17 00:00:00 2001 From: enne2 Date: Fri, 10 Feb 2023 19:52:03 +0100 Subject: [PATCH] fixed firefox bug --- cover.css | 3 +++ sketch.js | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cover.css b/cover.css index 6faae8d..fd2a478 100644 --- a/cover.css +++ b/cover.css @@ -20,6 +20,9 @@ a:hover { html, body { height: 100%; + margin:0; + padding:0; + overflow: hidden; /* background-color: #333; */ } diff --git a/sketch.js b/sketch.js index e1df66b..f6362ef 100644 --- a/sketch.js +++ b/sketch.js @@ -12,7 +12,11 @@ function setup() { function draw() { blendMode(BLEND); background(255); - blendMode(MULTIPLY); + if (!!window.chrome) { + blendMode(MULTIPLY); + } + + images.forEach((d) => d.draw()); }