nftchef / art-engine

An advanced fork of the HashLips Art Engine with additional features to generate complex art from provided layers using the familiar Hashlips setup.
MIT License
427 stars 203 forks source link

M1 Blend mode errors #228

Closed lucidreveur closed 1 year ago

lucidreveur commented 2 years ago

Encountered an issue with the blend mode using the generator on an M1 Mac. Overlay does not have the same results as it is in photoshop / CanvasRenderingContext2D.globalCompositeOperation. My code: { name: "layer", blend: 'overlay' }. I checked the layer files and rebuilt them in photoshop. The overlay looks very dark. I took the same exact files in the previous generator on my old NON-M1 machine and they looked fine. I spent a long time trying to figure it out reading Github and on the readme. I read the // see src/blendMode.js for available blend mode. It was also recommended to find other people with similar issues of other people using node canvas.

Any help is appreciated. Thank you!

nftchef commented 1 year ago

I belive this was related to the double draw issue, fixed in #190