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

Hold Shift to draw straight #11

Open
jlvallelonga opened this issue Sep 26, 2013 · 2 comments
Open

Hold Shift to draw straight #11

jlvallelonga opened this issue Sep 26, 2013 · 2 comments

Comments

@jlvallelonga
Copy link

would be a cool feature

@de-husk
Copy link

de-husk commented Oct 5, 2013

I forked the latest code and implemented holding shift and drawing a straight line / using an eraser in a straight line.

https://github.com/Samangan/drawingboard.js

The problem is that with only 1 canvas to draw on you will not be able to see the line being drawn as you move your pointer. You will only see the finished line after you stop drawing the line (it was either this or show the line being drawn and keep it on the canvas forever with the straight line finished product). Normally 2 canvases are used where one is used as a temporary canvas to draw the animation path and then is deleted on mouseup event. I will start to think of an alternative to this as I think that using 2 canvases would be a pretty big change.

@manuhabitela
Copy link
Owner

Hey, cool to see that!

You're right, having another canvas would be a pretty big change but that would also let us add other features in a more easy way too.

Currently don't have that much of free time though, and I want to correct the few bugs here and there before adding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants