# Rotation 3d text

**URL:** <https://discourse.processing.org/t/rotation-3d-text/10213>\
**Category:** Coding Questions\
**Created:** [April 12, 2019, 12:38pm UTC](https://discourse.processing.org/t/rotation-3d-text/10213 "2019-04-12T12:38:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 12, 2019, 1:58pm UTC](https://discourse.processing.org/t/rotation-3d-text/10213/9 "2019-04-12T13:58:54Z")

</div>

it’s a different kind because you look at it letter by letter

start from here

```auto
int i, cntX, cntY; 
float letterX, letterY;
int radius = 260; 
String quote = "Everything you can imagine is real. | Pablo Pi-casso";
float angleSpeed = TWO_PI/quote.length();

void setup() {
  size(600, 600);
  frameRate(2);
  fill(255, 0, 0);
  textSize(30);
}

void draw() {
  background(150);
  printQuote();
  i++;
  if ( i > quote.length() ) i = 0;
}

void printQuote() { 
  int cntX = width/2, cntY = height/2;
  for (int j = 0; j < i; j++) {
    letterX = cntX + radius * cos(j*angleSpeed);
    letterY = cntY + radius * sin(j*angleSpeed);
    text(quote.charAt(j), letterX, letterY);
  }
}

```

see

> [@Printing characters one by one?](https://discourse.processing.org/t/printing-characters-one-by-one/8952):
>
> Hello, How can I print out string characters one by one? Kind of like how in some RPG games when an NPC is talking the text will print out slowing at a certain speed each letter one by one. However I’m not going left to right, I’m printing them out in a circle which I’ve managed to do; except all the letters end up getting printed out in each space rather than each letter one by one. This is my bit of code that prints out the string in a circle, for(int i = 1; i \<= quote.length(); i++) { …

Chrisir

---

_[View the full topic](https://discourse.processing.org/t/rotation-3d-text/10213)._
