xxxxxxxxxx
///HELLO THIS IS A GENERATED POEM
///DO NOT TOUCH THESE ATTRIBUTES
String[] nouns = new String[8];//declaring String Array called nouns to hold 8 Strings
int randomNoun = (int)random (0,7);//declaring and initializing randomNoun variable + casting random value
String[] verbs = new String[8];//declaring String Array called verbs to hold 8 Strings
int randomVerb = (int)random (0,7);//declaring and initializing randomVerb variable + casting random value
String[] adjectives = new String[8];//declaring String Array called adjectives to hold 8 Strings
int randomAdjective = (int)random (0,7);//declaring and initializing randomAdjective variable + casting random value
String[] words = new String[8];//declaring String Array called words to hold 8 Strings
int randomWord = (int)random (0,7);//declaring + initializing randomWord variable + casting random value
void setup()//sets up the window that our drawing is in. runs code once
{
//size of window
size(600,600);
background(0, 0, 0);//color (red,green,blue) 0-255
///DO NOT TOUCH THESE ATTRIBUTES
////////////////////////////////
///////////////////////////////
//////////////////////////////
//WRITE DOWN NOUNS HERE//
nouns[0] = "eyes";//beginning of array is always 0
nouns[1] = "vision";
nouns[2] = "book";
nouns[3] = "poem";
nouns[4] = "page";
nouns[5] = "words";
nouns[6] = "pages";
nouns[7] = "mind";
//WRITE DOWN VERBS HERE//
verbs[0] = "designs";
verbs[1] = "creates";
verbs[2] = "revolutionizes";
verbs[3] = "solves";
verbs[4] = "develops";
verbs[5] = "invents";
verbs[6] = "implements";
verbs[7] = "scares";
//WRITE DOWN ADJECTIVES HERE//
adjectives[0] = "stimulate";
adjectives[1] = "shake";
adjectives[2] = "engage";
adjectives[3] = "insightful";
adjectives[4] = "reflective";
adjectives[5] = "intuitive";
adjectives[6] = "captivates";
adjectives[7] = "critical";
//WRITE DOWN ANY WORD YOU WISH HERE//
words[0] = "goodbye";
words[1] = "fonts";
words[2] = "cursor";
words[3] = "computer";
words[4] = "code";
words[5] = "poet";
words[6] = "designer";
words[7] = "pupil";
///DO NOT TOUCH ATTRIBUTES DOWN HERE
frameRate(5);//void draw loops 5 frames per sec
}
void draw()
{
background(0, 0, 0);//new page is draw each time code runs
//textSize(PixelHeight); changes size of text and goes about the text you want displayed
textSize(25);
//text("parts you want to show up," xPosition, yPosition);
text("The " + adjectives[randomAdjective],+ 100,100);
text(nouns[randomNoun], 100 , 200);
text(verbs[randomVerb], 100, 300);
text("the " + words[randomWord]+ ".", 100, 400);
}