Skip to content

Instantly share code, notes, and snippets.

@gocreating
Created November 2, 2015 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gocreating/ead63ff0fa30113e4c69 to your computer and use it in GitHub Desktop.
Save gocreating/ead63ff0fa30113e4c69 to your computer and use it in GitHub Desktop.
// Usage
var _r = new DollarRecognizer();
if (_points.length >= 10) {
var isUseProtractor = false;
var result = _r.Recognize(_points, isUseProtractor);
console.log("Result: " + result.Name + " (" + round(result.Score,2) + ").");
} else {
console.log("Too few points made. Please try again.");
}
// Mouse Move Event
function mouseMoveEvent(x, y) {
if (_isDown) {
_points[_points.length] = new Point(x, y); // append
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment