Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants