Hi, everyone !
When I use sin()
funtion to shrink my text’s size I am getting a shaky effect with textAlign(CENTER, CENTER)
. I have to use it with textAlign(CENTER, CENTER)
but without shaky effect.
Here is my code which I am talking about :
void setup() {
size(900, 900);
textAlign(CENTER, CENTER);
}
void draw() {
background(0);
for(int i = 0; i < 8; i++) {
for(int j = 0; j < 17; j++) {
float wave = map(sin(radians(frameCount*2 - i * 40 - j * 40)), -1, 1, 10, 50);
textSize(wave);
text("belli", i * 110 + 60, j * 50 + 40);
}
}
}
I appreaciate any help, thanks !
Yhlas Kerimov