How to get space between the displayed letters

Hello,
some of the letters are above other letters. How to get one letter behind another letter without overlapping?
Thanks in advance!

char alphabet = 'a';
char nextChar;
float chatX = 20;
int spacing;


void setup() {
  size(500, 500);  
  spacing = width/45;
}

void draw() {
  background(0);
  float nextChatX = chatX;

  for ( int i = 0; i < 26; i++) {
    nextChar = char(alphabet + i);
    textSize(24);
    fill(random(255), random(255), random(255), random(255));
    noLoop();
    text( nextChar, (nextChatX) + (spacing * i), 25);
  }
}

1 Like

Increase the spacing to get more distance here

1 Like

Oops right, worked. Thanks!!! :grinning: :grinning:

1 Like