記録

勉強したことに関するのノート。見返して分かるようにしてます。

hOI!!!

クリックしてテミ意で満たされよう!

int x=1;

void setup() {
  size(500, 500);
  colorMode(HSB, 360, 100, 100);
  background(180, 100, 100);
}

void draw() {
  fill(0, 0, 0);
  textAlign(CENTER);
  PFont f;
  f=createFont("MS-Gothic", 50);
  textFont(f, 40);
  text("テミ意度", width/2, 340);
}

void mousePressed() {
  noStroke();
  fill(180, 100, 100);
  rect(0, 0, 500, height/4+30);
  fill(0, 0, 0);
  int n=(int)random(3);
  if (n==0) {
    text("hOI!!!!! i'm tEMMIE!", width/2, height/4);
  }
  if (n==1) {
    text("ほい!temmieさんだよ!", width/2, height/4);
  }
  if (n==2) {
    text("ホィ!!あちし手ミーだぉ!!", width/2, height/4);
  }
  fill(180, 100, 100);
  rect(0, 350, 500, 300);
  fill(0, 0, 0);
  text(x, width/2, 400);
  x=x+1;
}

UNDERTALEというゲームの中のキャラクターのテミさんが好きです。あとゲーム音楽も頭溶けそうな曲で作業用BGMに重宝してます。無限ループです。
ランダムに表示されるのは「英語版」、「非公式日本語版」、最近出たという公式の「日本語版」でのテミさんのあいさつ文です。Open Processingでは文字が小さいですが、コピペして自分のProcessingでやると普通に見れます。

www.nicovideo.jp

www.nicovideo.jp