Typewriter-like Text
in
Programming Questions
•
25 days ago
Hi all,
It's a lot you all are enlightening me with your precious tips and my turn to ask personally has now arrived. I adapted some standard codes found online to give my text a "typewriter-effect" and these are the results...
Now, it works great (another I tried was distorching the font) but I can't figure how to have the words/letters starting, let's say, at x = 10, not on the left border. Do you have any idea? (Of course you have, I'm the newbie here!)
Thanks a lot to all!
It's a lot you all are enlightening me with your precious tips and my turn to ask personally has now arrived. I adapted some standard codes found online to give my text a "typewriter-effect" and these are the results...
Now, it works great (another I tried was distorching the font) but I can't figure how to have the words/letters starting, let's say, at x = 10, not on the left border. Do you have any idea? (Of course you have, I'm the newbie here!)
Thanks a lot to all!
- int timer = 0;
String testo = "hello hello";
void draw()
textFont (font1, 20);
fill (colorfontorange);
if (fase == "introduzione") {
if (timer % 20 == 0) {
int iTesto = timer / 20;
if (iTesto<testo.length()) {
char lettera = testo.charAt (iTesto);
fill (colorfontarancione);
text (lettera, iTesto*15, 100);
}
}
timer+=1;
1