Skip to main content
12 events
when toggle format what by license comment
Feb 11, 2022 at 16:55 vote accept Leo_xfh
Feb 9, 2022 at 19:37 history edited Leo_xfh CC BY-SA 4.0
deleted 368 characters in body
Feb 9, 2022 at 18:43 comment added Leo_xfh @DMGregory Thanks it was indeed the area to clear, it works fine, thanks!
Feb 9, 2022 at 18:43 answer added Leo_xfh timeline score: 0
Feb 8, 2022 at 23:11 comment added DMGregory Are you clearing your canvas before drawing the next frame? And is your clearing rectangle correctly covering the entire canvas? (ie. either undoing or compensating for the shift in the coordinate system when choosing the area to clear)
Feb 8, 2022 at 22:19 comment added Leo_xfh @DMGregory actually there is an issue, when the new points from the right arrive in the viewport, I edited the post with an image, I did not have this when I added the offset to the coordinates, so I don't think it's an issue with the generated coordinates.
Feb 8, 2022 at 22:16 history edited Leo_xfh CC BY-SA 4.0
added 104 characters in body
Feb 8, 2022 at 22:10 comment added DMGregory If that solved your problem, try sharing your revised code as an answer below.
Feb 8, 2022 at 22:09 comment added Leo_xfh nice @DMGregory thank you very much
Feb 8, 2022 at 21:50 comment added DMGregory Instead of adding an offset to each x position, have you considered shifting the whole drawing context with context.translate?
S Feb 8, 2022 at 21:36 review First questions
Feb 9, 2022 at 0:49
S Feb 8, 2022 at 21:36 history asked Leo_xfh CC BY-SA 4.0