Show HN: Airdraw (airdraw.io)
Airdraw is an app that takes in your hand gestures and converts it into real time drawing capabilities.
There are tons of stuff I want to build with this, but most importantly just put it out into the world! Hope you all enjoy :)
Tested on my MacOS with Chrome, Safari, and FF
I included a link to the original GH project I wrote here - https://github.com/arefmalek/airdraw and a link to the blog where I explained how I made it here - https://arefmalek.github.io/blog/Airdraw/
If anyone has issues with loading, try again with this link - https://web-draw-e58vy7q9m-arefmalek.vercel.app/. AFAIK, IOS livestream doesn't allow a canvas overlay so you would be able to draw, but not see anything until you exit the livestream. Hope someone has a sol for that ¯\_(ツ)_/¯
48 comments
[ 3.4 ms ] story [ 107 ms ] threadMaybe there could be a permissions check and an error message if it's disabled? https://jamesburnside.github.io/blog/detecting-camera-permis...
there are some samples, using the same framework that airdraw uses.
One slight UX suggestion: Consider a "start" button before making the camera request. Permission prompts are blocking modals on Safari (unlike Chrome where they're a pop-over from the toolbar), so the user doesn't necessarily have context if it's on page load!
Also, look at the many JS drawing samples out there - it's very simple to smooth out the lines - either by adding a small delay to calculate the curves on the fly, or by snapping to the curve when the line stops.
Fun little thing otherwise!
(Peace sign has palm facing out, 'fuck you' sign has palm facing in)
I sure do hope that made some PM a bazillion dollars, because it's not a good use of glucose, and worse when multiplied by the amount of glucose required by everyone downstream who now needs to expend energy to learn(?) how to turn it off
Snow Leopard for life.
One idea I immediately had was to use a key on the keyboard (if not on mobile of course) as triggers for draw, hover, erase, etc. You could also control different colors that way, possibly even draw generated shapes like circles and rectangles (press 'c' to start a circle, then use your finger to drag out the size, stop with 'c' again).
and if you want to get really advanced, allow rotation of the drawn object and then choose a new plane to draw on.
Did something change? It's nice not to have to copy and paste the URL.