-
Notifications
You must be signed in to change notification settings - Fork 41
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
Rect shadow broken #11
Comments
Hi again! I haven't been able to reproduce the DrawImage problem. Could you maybe post the code with the DrawImage? As for the performance, that is certainly possible that that can be kinda slow. That's a disadvantage of me using a fairly fast computer, I don't really notice that sometimes. At some point I'll switch to a computer with an embedded GPU and check there. But just to be sure, did you call cnv.BeginPath() before calling cnv.Rect()? If not, it will actually append the rect to the path every frame. I don't really like that behavior, but it does seem to be the way that the HTML canvas works as well. |
I have edited the code for the rect, but the issue is still there... :(
for the drawImage
|
I still haven't been able to reproduce the problem with the DrawImage and the shadow. According to your screenshots, the image should not be drawn at all. Is that right? As for the performance, the shadows are indeed not all that fast. I hadn't noticed since on my computer they are quite fast, but I tried running it on my phone, and it slows down considerably. There does seem to be a faster way to do blurs, but I'm not sure yet. |
Hello again,
Was just experimenting with rect shadows and found out that:
For the bug, here's a screenshot:
what's excepted:
Here's the code used to draw the rect
The text was updated successfully, but these errors were encountered: