How can i animate the D so instead of having the D stretched i see how it stretches? (this is the code i have)

PFont myFont;
void setup() {
size(1200, 1200);
// Uncomment the following two lines to see the available fonts
//String[] fontList = PFont.list();
//printArray(fontList);
myFont = createFont(".SFNS-Bold", 125);
frameRate(30);
rectMode(CENTER);

}
void draw(){
float text = 5;
int s = second();
scale(12, 1);
scale(500 + 200 * sin(s * text *4),text,50 + 40 * sin(s));
fill(255);
textSize (124 );
text(β€œD”,0,500);

}

Hi @tommyba,

Welcome to the forum! :wink:

When you post on the forum, it’s better to put the content of your question inside the post itself rather than in the title.

Also please format your code by using the </> button when editing a message. This helps understanding and answering your question.

If you want to animate things in Processing, I recommend this tutorial :

1 Like