Git Product home page Git Product logo

chrome-draw's Introduction

Chrome Draw

Welcome to chrome draw. This is a drawing app built to be turned in to a chrome extension to mark up any web page.

Demo:

Requires WebGL for display, Leap Skeletal Beta for interaction:

leapmotion.github.io/chrome-draw/

Building

It is currently implemented in coffee script. Simply run

npm install

grunt dev

And then head to http://localhost:8000

As well as transpiling the coffeescript in to main.js, this will also run a livereload server. With the right chrome extension, the page will reload for you when files are changed.

Known issues and road map

  • Hand splay should be measuring how stretched-out fingers are, but actually measures how together they are
  • Sometimes some brush strokes are left behind when clearing the canvas
  • Leap-playback can sometimes speed up

Roadmap:

  • Wire up the color choosers on the top right
  • Allow click interaction, to go between moving hand Up/Down for hue and Up/Down/Left/Right for saturation
  • Build in to chrome extension, for use on any page
  • Add "new canvas" and "take screenshot" buttons
  • Add share buttons
  • Break out swipe-timeout (and direction, end-event) in to their own wrapper plugin
  • Add field of view calculations (plugin) and a feature with the rigged hand to allow coloring bounded by a plane. Use to darken the hand on the edge of the field of view.
  • Use radial coordinate system to detect left and right flicks of the hand from the wrist, use to switch h/s/l setting modes.
  • Add grab support, to allow moving the background with one hand, while drawing with the other.

Components

  • Probably the most interesting part of the app is how the pen is positioned: javascripts/helpers.coffee#L41-L45
  • The Rigged Hand - 3d hand on screen
  • Leapjs-playback - plays back pre-recorded motion
  • leap.relative-motion This beta plugin allows motion relative to the position of the hand when last recalibrated
  • leap.hand-splay This beta plugin measures how flat and stretched-out a hand is.

chrome-draw's People

Contributors

pehrlich avatar raimo avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.