Drawing Tablet Library For Processing

marcus • March 18th, 2008

libTablet aims at becoming a (cross-platform) Java drawing tablet library that plays nice with Processing. It gives you easy access to your tablets pressure, tilt and rotational data in your sketches/ Java applications.

Since my most immediate requirement currently is to have it working on Mac OS X, it is yet not really cross-platform. However the plan is to wrap JTablet on Windows to provide a common interface for easier development/ deployment across these systems.

Releases

version 0.1

first draft, mac os x only
» Tablet-0.1.zip

Source

You can get the latest version via mercurial with:

hg clone http://hg.infostuka.org/hg/libTablet/

Useage

Simply create a PTablet object before you initialize your sketch, which you can then use to query your tablet for: pressure, tiltX, tiltY, rotation etc.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import processing.opengl.*;
import infostuka.lib.tablet.p5.*;

PTablet tablet;

void setup ()
{
    // ATTENTION - new PTablet() HAS to be created before calling size()
    tablet = new PTablet(this);
    size(800, 600, OPENGL);
}

void draw ()
{
    if (mousePressed) {
        float brushSize = tablet.pressure * 100f;
    System.out.println("TILT " + tablet.tiltX + " " + tablet.tiltY + " ROT " + tablet.rotation + " THETA " + theta);
    ...
    your drawing commands here
    ...
    }
}

License

CC - Some rights reserved

Copyright © Marcus Wendt 2008
This library is licensed under the GNU LGPL

 

Permalink

 

shake it!

vera • September 14th, 2007

Did some fun tests today: a) Find out which sound frequencies hazelnuts like! b) Break a propeller!

The propeller is the starting point for a small series of collectables we want to make; technology bits in small caskets. And the hazelnuts… one day they´ll dance with you and maybe even massage your feet afterwards!

Comments on Microsofts Surface

marcus • June 2nd, 2007

“I said in the above interviews that when Jeff Han’s solution was shown, it was officially over for surface innovation. I called them Hypertables, Hypersurfaces and Object Oriented Objects, MIT people called them Things That Think amongst other terms (and ages before me), and then before all that there was Bill Buxton and Myron Kruger. So none of this is new. But what we needed was a starting block, a sort of ok, fiddling’s over, time to use this stuff. Jeff solved the fundamental visual-gestural language, and all we had to do from there was to start using it.

I also should mention here what got cut out of the Fast Company interview, in response to the question « are hypertables the replacement for the keyboard/mouse combination? » My answer to that was « look at the Wii ». You cannot seperate the iPhone introduction from the introduction of the Wii controller. Both are looking to phsyicalize algorithms, make algorithms maleable physically, and as far as that goes, the field is still wide open. Keyboards and mice are still workable, so they probablly won’t die, no, beacause people will be writing things for a long time to come. Neither the Wii, nor the iPhone, to Surface, will help you write your blog. Maybe your video blog, but not your text blog.

Or maybe a million little things will complement the keyboard and mouse, or maybe just a half-dozen solutions will turn out to be modular enough to solve most of the things we will want to do. Or maybe Cronenberg is right, and it’ll be your body itself. But in my opinion 1) phyiscal objects are good for abstract thinking, and 2) no single object will be fully modular enough for all uses. There will not be one single system, although touch will indeed solve quite a few of the old ones. But whatever the case, the interfacing will require interfacing algorithmically. And when it comes to interacing algorithmically, nothing beats the Rubik’s Cube.”

Source: AbstractMachine.net

3d 4-space abstract aesthetic system aesthetics algorithm alien ambient ambisonics animation architecture art artificial audio audio research black&white book caskets classic clicks & cuts climate code color competition computer-vision conceptual art consoles cpp culture ddr design devices digtial fabrication documenta documentation drawing dynamics electricity electromagnetism electronics environment event exhibition experimental exploration fashion festival film flocking folk food fractal furniture gamedev generative genetic geometry glitch graphic hacks haptics hardware history hyperspace ideas illustration images inspiration installation instrument intelligence interactive interieur japan java knowledge management landscape library life light liquid live london math micro minimal minimalism modernism monochrome motion motion graphics multiples music naming nature nervous ink networked networking opensource osx painting paper particles performance personal photography physics playful politics press print processing processing.org programming quotes recipes research retro romance ruby science scripts sculpture SENDUNG.net shopping snippets social software sound space space exploration craft space exploration craft orbiter supercollider swiss systems technology theory theremin toys transformed travel tricks typography universe video visual vj water web2.0 xcode