# Amazing spiral! Help?

**URL:** https://discourse.processing.org/t/amazing-spiral-help/5570
**Category:** Coding Questions
**Created:** [November 15, 2018, 8:10pm UTC](https://discourse.processing.org/t/amazing-spiral-help/5570 "2018-11-15T20:10:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Msandoval](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Msandoval](https://discourse.processing.org/u/Msandoval)
#### Post date: [November 15, 2018, 8:10pm UTC](https://discourse.processing.org/t/amazing-spiral-help/5570/1 "2018-11-15T20:10:38Z")

</div>

float m = 0;  
void setup(){

fullScreen(P3D);  
}

void draw(){  
background(250);  
rotateX(frameCount \* 0.01);  
translate(400,500);

for(float m = 0; m \< 5; m++){

```
pushMatrix();
for(float i = 0; i < 80; i++){
  translate(sin(frameCount * 0.005 + m) * 10, sin(frameCount * 0.005 + m) * 10, i * 1);

  rotateY(frameCount * 0.005);
  pushMatrix();
  fill(40);
  rect(100, 6, 20,5); 
  
  popMatrix();
}

```

popMatrix();  
}  
}

I would like this design to be centered on my screen and not floating above. Can you help?

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [November 16, 2018, 1:01am UTC](https://discourse.processing.org/t/amazing-spiral-help/5570/2 "2018-11-16T01:01:48Z")

</div>

[https://processing.org/reference/translate\_.html](https://processing.org/reference/translate_.html)  
i think it is centered if you move the translate up

```auto
void draw() {
  background(200, 200, 0);
  translate(width/2, height/2);
  rotateX(frameCount * 0.01);
//...

```
