Hallo! Can you explain me why my text doesn't spinning?

Yeah!

Prior to posting: remember to press ctrl-t in processing often: auto format for indents

As I said:

cos(j*angleSpeed); : add something to it

cos(j*angleSpeed + angleAdd);

do the same for sin line obviously

angleAdd+= 0.08;

What happens when you activate this line again…?




PFont myFont;

String s1= ("OBECALP PHARMACY ");
float angleSpeed= TWO_PI/s1.length();
float letterX, letterY;
int i, cntX, cntY;
int radius = 260;

float z=random(TWO_PI);
float x=0;
float y;
float r =0;

float angle, c, x1, y1=0;
float speed = 0;
int waveStrengthHorizontal= 5;
int waveStrengthVertical= 5;

float u, v;

float angleAdd=0; 

float angleX; 

void setup() {
  size(800, 800, P3D);
  background(255);
  myFont = createFont("DrukTextWide-Heavy.ttf", 20);
  //textFont(myFont);
  frameRate(20);
  cntX = width/2;
  cntY = 0;
}

void draw() {
  background(255);

  translate(0, height/2, 0); 
  rotateX(angleX);

  printQuote();

  angleX+=0.061;
}

void printQuote() {

  int count =0;
  for (y=-250; y<250; y++) {

    if (count%10==0) {

      for (int j = 0; j < s1.length(); j++) {
        letterX = cntX + radius * cos(j*angleSpeed+ angleAdd);
        letterY = cntY + radius * sin(j*angleSpeed+ angleAdd);

        pushMatrix();

        //rotateY(r);
        //rotateX(200);

        translate(letterX, y, letterY);
        textSize(20);

        fill(0, 0, 0);
        text(s1.charAt(j), 0, 0);


        popMatrix();
      }
    }
    count++;
  }
  angleAdd+= 0.08;
}