function setup() {
  createCanvas(windowWidth, windowHeight);
  noLoop();
  noCursor();
  imageMode(CENTER);
  rectMode(CENTER);

  // initialize the animatedType Object
  myAnimatedText = new animatedType();
  // add some text in
  myAnimatedText.textTyped.push(myAnimatedText.addText('TYPE!'));
  myAnimatedText.textTyped.push(myAnimatedText.addText('CODE!'));

  // read in the font to opentype.js
  opentype.load('data/FreeSans.otf', function(err, f) {
    if (err) {
      print('Font could not be loaded: ' + err);
    } else {
      font = f;
      loop();
    }
  });

  // frameRate(1)
}
Animated type exploring various drawing modes

MOUSE
position x/y             : affect randomness

KEYS
A-Z                      : type letters
Arrow left/right         : toggle through draw modes
Arrow up/down            : increase/decrease point density
CONTROL                  : save png

CONTRIBUTED BY
[Joey Lee](http://jk-lee.com)