You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fill_circle method calls helper_fill_arc which manipulates the scale and translation of the canvas. Something is likely not getting reset properly.
One suggested solution is to change the implementation of the helper_fill_arc and helper_stroke_arc to not need to use translate and scale.
I think this is the best solution, at the original time of writing arc and ellipse did not yet exist, but I believe they were added to later versions of ipycanvas. Another solution is to use canvas.save and canvas.restore instead of manually undoing the transformations
To reproduce use the following code:
Click in the top left hand corner repeatedly and after a while the circle will start being drawn at the wrong scale and position.
When testing the fix, test out with the ellipse function also.
The text was updated successfully, but these errors were encountered: