LzxHahaha / persona5

Persona 5 style font generator
https://lzxhahaha.github.io/persona5/
60 stars 17 forks source link

Questions regarding generation of text #2

Open DonaldTsang opened 5 years ago

DonaldTsang commented 5 years ago
  1. How does it work? it seems that if, for example, you repeat "ナ" more and more, a pattern would emerge but it doesn't (except the background, in this case it turns into "bars" instead of a bulls eye)
  2. Is is possible to rewrite this as a Python or JS program?
  3. Is it possible to allow for newlines and such to exist? Such that multi-row text can work?
LzxHahaha commented 5 years ago
  1. Sorry I didn’t understand this question, but you can find all the code in src/lib directory, there is only a little code need to read;
  2. It’s write by typescript, so it can easily to rewrite by js, but need to make some changes because canvas use one-dimensional array to save image;
  3. Of course it can.
DonaldTsang commented 5 years ago
  1. Try typing "ナナナナ...ナナナ" with as many "ナ" as possible, the pattern would repeat. (and as you add more characters the bullseye/dart board background looks more like straight lines rather than arcs)
  2. That is good to know
  3. For that one the demo-site does not allow for it, disappointingly.