function setup() {
  // use full screen size
  createCanvas(displayWidth, displayHeight);

  back = color(255);
  fromColor = color(181, 157, 0);
  toColor = color(181, 157, 0);

  background(back);
  frameRate(30);

  tablet = new gd.WacomTablet();
  // console.log(tablet.values());
}
draw tool. shows how to draw with dynamic elements.
works only with an external tablet device!
browser support for the tablet driver seems to be fading out.
safari should work well. chrome doesn't support the tablet plugin.

MOUSE
drag                : draw

TABLET
pressure            : saturation (in draw mode 3 only)
azimuth             : rotation of each element
altitude            : length of each element

KEYS
1-3                 : draw mode
6-0                 : colors
del, backspace      : clear screen
s                   : save png