> show canvas only <


/* built with Studio Sketchpad: 
 *   http://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   http://studio.sketchpad.cc/sp/pad/view/ro.bcN31ZNjGz4/rev.10
 * 
 * authors: 
 *   GoToLoop

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   http://creativecommons.org/licenses/by-sa/3.0/ 
 */ 



/** 
 * Unicode Letters Test (v1.0)
 * GoToLoop (2017/Jul/12)
 *
 * https://Forum.Processing.org/two/discussion/23416/
 * need-help-because-processing-can-t-read-slovak#Item_1
 *
 * http://Studio.SketchPad.cc/sp/pad/view/ro.9hlrt8LyDd9uA/latest
 * http://p5ide.HerokuApp.com/editor#?sketch=57fa34e9980f18030076c28f
 */

static final boolean JAVA = 1/2 != 1/2.;
static final int FONT_SIZE = 24;
static final String FONT_JAVA = "Roman";

void setup() {
  size(600, 200);
  smooth(3);
  noLoop();

  colorMode(RGB);
  fill(#FFFF00);

  textMode(MODEL);
  textAlign(CENTER, CENTER);

  if (JAVA)  textFont(createFont(FONT_JAVA, FONT_SIZE, true));
  else       textSize(FONT_SIZE);
}

void draw() {
  background(#0000FF);

  text("διχθαδίας κῆρας φερέμεν θανάτοιο τέλος δέ.\n" +
    "Бу́ря мгло́ю не́бо кро́ет, Ви́хри сне́жные крутя́;\n" + 
    "富士の風や扇にのせて江戸土産\n" + "Ako sa voláš", width>>1, height>>1);
}