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

bug on canvas.clear() #330

Open
bhomass opened this issue Apr 20, 2023 · 1 comment
Open

bug on canvas.clear() #330

bhomass opened this issue Apr 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@bhomass
Copy link

bhomass commented Apr 20, 2023

if I use canvas.scale(0.125), and call canvas.clear(), it only clears top left hand corner, which is 1/8 the width and height of the canvas.

@martinRenou martinRenou added the bug Something isn't working label Apr 21, 2023
@martinRenou
Copy link
Collaborator

Thanks for reporting. Indeed, clear is implemented to do the equivalent of clear_rect(0, 0, canvas.width, canvas.height) which may not take the current scale into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants