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

h2d.filter.Mask in h2d.Bitmat leads to mask being offset #1094

Open
zommerfelds opened this issue Aug 20, 2022 · 0 comments
Open

h2d.filter.Mask in h2d.Bitmat leads to mask being offset #1094

zommerfelds opened this issue Aug 20, 2022 · 0 comments

Comments

@zommerfelds
Copy link
Contributor

zommerfelds commented Aug 20, 2022

When using new Mask(obj, true), the masked part is not the same as the actually rendered mask.

image

I have a repo with the repro: https://zommerfelds.github.io/heaps-mask-bug/ (source)

First I thought that the problem was with the mask, but now I'm starting to see that it only happens when the Tile has a dx/dy (set with setCenterRatio) and the Bitmap has a modified width. There is some weird edge case here and the Bitmap is not behaving like I expect.

Don't know if this is related to #201. I think it might rather be something in the Bitmap?

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

1 participant