Browse Source

fixed firefox bug

master
Matteo Benedetto 3 years ago
parent
commit
b0d66d5c78
  1. 3
      cover.css
  2. 6
      sketch.js

3
cover.css

@ -20,6 +20,9 @@ a:hover {
html, html,
body { body {
height: 100%; height: 100%;
margin:0;
padding:0;
overflow: hidden;
/* background-color: #333; */ /* background-color: #333; */
} }

6
sketch.js

@ -12,7 +12,11 @@ function setup() {
function draw() { function draw() {
blendMode(BLEND); blendMode(BLEND);
background(255); background(255);
blendMode(MULTIPLY); if (!!window.chrome) {
blendMode(MULTIPLY);
}
images.forEach((d) => d.draw()); images.forEach((d) => d.draw());
} }

Loading…
Cancel
Save