-
Notifications
You must be signed in to change notification settings - Fork 62
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
CanvasView and clear_rect #58
Comments
I am surprised I did not see this! Thanks a lot :) Indeed calling |
I opened #60. I was afraid that clearing the canvas would result in flickering animations but at least in the game of life example I didn't notice anything. |
Thanks a lot! I was also afraid of the flickering at first but I suppose it will be fine. |
Fixed by #60 |
|
Clearing a rectangle is not visible in previous views of the widget. To be more precise construct a canvas widget and show it:
Now clear a rectangle:
This does not result in a change of the visible canvas widget.
Showing another instance of the widget by putting
in a new cell shows the cleared rectangle however.
Is this intentional?
It seems to be due to the fact that the views are updated by drawing the model canvas on them, but clearing a rectangle makes it transparent. Putting
this.clear()
beforethe call to
drawImage
inupdateCanvas
fixes this for me.The text was updated successfully, but these errors were encountered: