Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you draw brackets from bottom up they are recorded inverted.

For example, } drawn from bottom up is "recognized" as {.



That's because it's rotationally insensitive, which is a rather interesting property. I'm not sure how useful it is, but it certainly surprised me.


When I used this code for a simple application, I made a small change to the recognized to limit the rotational invariance so that a gesture that was rotated more than a certain angle threshold would not match.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: