Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liquid distortion material no longer functioning #67

Open
veeta-orinko opened this issue Nov 29, 2023 · 1 comment
Open

Liquid distortion material no longer functioning #67

veeta-orinko opened this issue Nov 29, 2023 · 1 comment

Comments

@veeta-orinko
Copy link

Hi - I've just noticed that all liquid distortion effects (including codepen, etc) have stopped working with the error code:

blotter.min.js:30 Uncaught DOMException: Failed to construct 'ImageData': The input data length is not a multiple of 4.
at a.Renderer.setSize (https://cdnjs.cloudflare.com/ajax/libs/Blotter/0.1.0/blotter.min.js:30:402731)

was just prepping to launch a site using this amazing effect! 
@webdingens
Copy link

The setSize function is not prepped to handle widths/heights with subpixel accuracy. My scaled display is breaking the entire demo section of the page, Chrome and FF current, Win11.
I added a Math.round(a) around the assignment to width and height, and it started working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants