p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

blendMode() not working right in firefox on windows 10

Open hellonearthis opened this issue 5 years ago • 8 comments

I was working on this https://www.openprocessing.org/sketch/854431 and noticed it doesn't look the same when opened in firefox vs how it looks in chrome. This problem only seems to affect windows and not apple os

Most appropriate sub-area of p5.js?

  • [x] Core/Environment/Rendering

Details about the bug:

  • p5.js version: 1.0.0

  • Web browser and version: Chrome 80.0.3987.149 Firefox 75.0b6

  • Operating System: Microsoft Windows 10 Professional Build 18363

  • Steps to reproduce this: https://www.openprocessing.org/sketch/854431 load this sketch in chrome and firefox and change the blendmode, in firefox it doesn't render properly. image image

hellonearthis avatar Mar 23 '20 03:03 hellonearthis

I'm on macOS Firefox 74 (latest stable release) and can't replicate this. @hellonearthis Can you try Firefox 74 on Windows to see if it still present as a bug?

limzykenneth avatar Mar 23 '20 13:03 limzykenneth

I can't replicate this too, on Ubuntu 18.04

Screenshot from 2020-03-23 21-46-31

ahujadivyam avatar Mar 23 '20 16:03 ahujadivyam

I am able to replicate this on Windows 10.0.18362 with Firefox 74.0.

stalgiag avatar Mar 23 '20 18:03 stalgiag

I am able replicate this bug on Windows 10 firefox but not on Ubuntu 18.04 firefox

ahujadivyam avatar Mar 28 '20 15:03 ahujadivyam

Hmm...seems to be Windows only. Anyone has any idea? I'm not familiar enough with Windows to say...

limzykenneth avatar Mar 30 '20 20:03 limzykenneth

with shadowBlur = 0 it works. So it seems windows+firefox doesn't like globalCompositeOperation and shadowBlur together. I don't know if it's related but quick search showed this: https://stackoverflow.com/questions/34028717/canvas-shadow-with-globalcompositeoperation-destination-out

micuat avatar Jun 06 '20 15:06 micuat

Firefox 87.0 (64-bit) on Windows 10 20H2

shadowBlur = 0 shadowBlur > 0

smrnjeet222 avatar Apr 05 '21 17:04 smrnjeet222

I had the same issue when I used drawingContext.shadowBlur and blendMode(LIGHTEST) in the same function. I tried separating the code in two different functions and now it works properly in Firefox (Windows 10).

bejucoo avatar Mar 15 '22 17:03 bejucoo