pixel-paint icon indicating copy to clipboard operation
pixel-paint copied to clipboard

Line is drawn choppy on fast mouse movements

Open Kully opened this issue 3 years ago • 7 comments

Issue

When you draw a line with your mouse very quickly across the screen, you get this choppy line. Would like the line to not have a bunch of gaps in it.

Idea for Solution

This will probably require some kind of interpolation as a user moves a mouse across the screen.

https://user-images.githubusercontent.com/10369095/156856405-011c9afe-7f77-485c-af14-27d9bc2c3b9a.mov

Kully avatar Mar 04 '22 23:03 Kully

I'm working on a solution to this issue, but it is involving a complete rewriting of the way you handle the canvas. Instead of using individual divs, I'm using the javascript canvas element. This makes many things easier. It will soon be finished. You can take a look at my fork of the project to get an idea.

gillo04 avatar Jun 16 '22 11:06 gillo04

I'm working on a solution to this issue, but it is involving a complete rewriting of the way you handle the canvas. Instead of using individual divs, I'm using the javascript canvas element. This makes many things easier. It will soon be finished. You can take a look at my fork of the project to get an idea.

Amazing, so happy that you want to make a contribution to the project! 🎉

Yeah, the divs are definitely a little clunky. Honestly, the whole project was inspired by a blogpost where someone created a canvas-like structure made out of a grid of divs.

Excited to see what you come up with.

Kully avatar Jun 16 '22 12:06 Kully

@gillo04 Any insights on your end? Juggling a few other projects atm so don't have the bandwidth to be on this 🙂

Kully avatar Jul 13 '22 22:07 Kully

Heads up, will probably start working on this soon. Lmk if you still want to contribute your branch.

Kully avatar Apr 22 '23 16:04 Kully

Hey 👋 Me and @Raphaelmos are students at the Paris 8 University (French) and we'd love to be assigned to this task as part of our "free software development" course ! We are looking forward to contributing to this project and we are ready to start working on it.

Viet281101 avatar Feb 14 '24 18:02 Viet281101

Hi! Amazing, that would be great. :)

Im happy for you to open up a PR and get started on the feature.

Please feel free to ping me as well if you have any questions at all. 🙏

On Wed, Feb 14, 2024 at 1:44 PM Viet Nguyen @.***> wrote:

Hey 👋 Me and @Raphaelmos https://github.com/Raphaelmos are students at the Paris 8 University (French) and we'd love to be assigned to this task as part of our "free software development" course ! We are looking forward to contributing to this project and we are ready to start working on it.

— Reply to this email directly, view it on GitHub https://github.com/Kully/pixel-paint/issues/8#issuecomment-1944398522, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPDQRYWU3L4Q7XNIZ437W3YTUA2XAVCNFSM5P62L4N2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJUGQZTSOBVGIZA . You are receiving this because you authored the thread.Message ID: @.***>

CC @Viet281101 @Raphaelmos

Kully avatar Feb 16 '24 03:02 Kully

We are looking forward to contributing to this project and we are ready to start working on it.

Out of curiosity, have you folks gotten a chance to start on this. No worries if you haven't :)

Kully avatar Apr 28 '24 00:04 Kully