Skip to content

Instantly share code, notes, and snippets.

@volfegan
Last active August 4, 2019 17:05
Show Gist options
  • Save volfegan/1dab243c60f0c912677ab9afe472d29d to your computer and use it in GitHub Desktop.
Save volfegan/1dab243c60f0c912677ab9afe472d29d to your computer and use it in GitHub Desktop.
Show Japanese text on processing
String neko = "ネコ"; // neko (even it is only showing boxes on IDE)
void setup() {
size(400, 300);
textSize(18);
fill(0);
textFont(createFont("NSimSun", 30));
float x_offset = textWidth(neko)/2;
text(neko, (width/2)-x_offset, height/2); //show text in the middle of the screen
}
@volfegan
Copy link
Author

volfegan commented Aug 4, 2019

Nihongo benkyoushimashita. Muzukashideshita, demo omoshiroi desu.
And when you find a group of Japanese people, say this:
Neko ga suki desu. Neko ga nyan wo hanashimasu. Bijin Onna suki mo.
They will laugh for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment