Last active
August 4, 2019 17:05
-
-
Save volfegan/1dab243c60f0c912677ab9afe472d29d to your computer and use it in GitHub Desktop.
Show Japanese text on processing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.