Generative Text Project

For this project, I kept it pretty simple as I tried to get my head around how to split string arrays. I basically wrote down a bunch of words that were in my head throughout this week and the text kinda follows the pattern around the screen like the thoughts do in my brain? If that makes sense. I think there’s a lot of ways I can develop this further and with better aims e.g. I feel like similar typography/graphics is used in a lot of advertisements when actors’ thoughts crowd the screen without them actually saying anything etc. It would be cool to develop this more aesthetically as well.

int i = 0;
String quote = "food mom dubai midterms exams stress game of thrones chocolate stress endgame cinema work friends laugh chicken deadlines ramadan eid grandma weather statistics snapchat wedding";
String [] myArray = split (quote, " ");
PFont f;

void setup() {
  size(800, 600);
  background(0);
  f = createFont("FreeSansBold.ttf", 32);
  textFont(f);
  println();
}

void draw() {

  i++; 
  if (i > (myArray.length-1)) {
  i = 0;
 
}

  fill(187, 178, 255, 55); 
  translate(mouseX, mouseY);
  text(myArray[i], 0, 0);
  delay(100); 
}

 

 

Leave a Reply