Re:Show HN: MirrorDraw – A small project to draw on a canvas
by hfsktr on Saturday November 15, 2014 @12:47PM
(#8612162)
You are right. I had tried but never got it working. The problem was knowing when to stop one canvas and start the next (which is done with mousedown/mouseup or bounds right now).
This and the kaleidoscope are two things that could keep me busy.
Re:Show HN: MirrorDraw – A small project to draw on a canvas
by nikital on Saturday November 15, 2014 @01:09PM
(#8612214)
Is there a reason to use two separate canvases? You won't have this problem if you had just one canvas.
Re:Show HN: MirrorDraw – A small project to draw on a canvas
by hfsktr on Saturday November 15, 2014 @01:13PM
(#8612223)
When I started it was set up so that only the left canvas worked. I spent some time to make it work for both.
I could make it so that when drawing it reverses from the middle so that it was just one canvas. Well, I could try.
Re:Show HN: MirrorDraw – A small project to draw on a canvas
by abecedarius on Saturday November 15, 2014 @03:56PM
(#8612641)
For the kaleidoscope, you might enjoy http://wry.me/hacking/kaleidopaint6.html
It only works with touch events, not mouse, so mouse support would make a nice next step.
One thing I would improve: When drawing on the left half and moving to the right half without releasing the mouse, the drawing stops. I would expect the drawing to continue on the right canvas, while mirroring back to the left canvas, and vice-versa.
Maybe it's a browser specific, I'm on Chrome 38.0.2125.122, OSX 10.10.