# Now it stops spinning but it’s in the center haha now can i do to spinning =/

**URL:** <https://discourse.processing.org/t/now-it-stops-spinning-but-it-s-in-the-center-haha-now-can-i-do-to-spinning/10347>\
**Category:** Coding Questions\
**Created:** [April 16, 2019, 9:44am UTC](https://discourse.processing.org/t/now-it-stops-spinning-but-it-s-in-the-center-haha-now-can-i-do-to-spinning/10347 "2019-04-16T09:44:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fwtini](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fwtini](https://discourse.processing.org/u/fwtini)\
**Post date:** [April 16, 2019, 9:44am UTC](https://discourse.processing.org/t/now-it-stops-spinning-but-it-s-in-the-center-haha-now-can-i-do-to-spinning/10347/1 "2019-04-16T09:44:41Z")

</div>

Now it stops spinning but it’s in the center haha now can i do to spinning =/

```auto
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;
void setup() {
  size(800, 800, P3D);
  background(255);
  myFont = createFont("DrukTextWide-Heavy.ttf", 20);
  //textFont(myFont);
frameRate(20);
}

void draw() {
background(255);

i=s1.length();
printQuote();
}

void printQuote(){
  
 
  
int count =0;
for(y=0; y<500; y++){
if(count%10==0)
  {
  
int cntY =0, cntX =width/2;
for (int j = 0; j < i; j++) 

{
    letterX = cntX + radius * cos(j*angleSpeed);
    letterY = cntY + radius * sin(j*angleSpeed);
    
    
     
          
pushMatrix();

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

 translate(letterX, cntY, letterY);
 textSize(20);
 
 fill(0, 0, 0);
 text(s1.charAt(j),x,y);
 

  popMatrix();
  
}
}
count++;
//r=r+0.0001; angle+=10;
//speed=0.01;
  }
}

```

---

_[View the full topic](https://discourse.processing.org/t/now-it-stops-spinning-but-it-s-in-the-center-haha-now-can-i-do-to-spinning/10347)._
