function setup() {
  createCanvas(1200, windowHeight);
  colorMode(HSB, 360, 100, 100, 100);

  textFont('monospace', 18);
  fill(0);

  joinedText = joinedText.join(' ');
  charSet = getUniqCharacters();
  for (var i = 0; i < charSet.length; i++) {
    counters[i] = 0;
    drawLetters[i] = true;
  }

  countCharacters();
}
analysing and sorting the letters of a text
connecting subsequent letters with lines

MOUSE
position x          : interpolate between normal text and sorted position

KEYS
1                   : toggle grey lines on/off
2                   : toggle colored lines on/off
3                   : toggle text on/off
4                   : switch all letters off
5                   : switch all letters on
a-z                 : switch letter on/off
ctrl                : save png