/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.LQWoXoqPNSR/rev.515
*
* authors:
*
*
* Fun Programming
*
* michele
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// Click the poem to generate new one
// If you like a sentence, press any key.
// It will open a new window, then go to File > Save
// Explained in Fun Programming episodes 54, 55, 56 and 57
// http://www.youtube.com/user/hamoid
float y;
String[] art = {
"the", "my", "your", "our", "that", "this", "every", "one", "the only", "his", "her", "half", "most of this"
};
String[] adj = {
"happy", "rotating", "red", "fast", "elastic", "smily", "unbelievable", "infinite", "surprising", "mysterious", "glowing", "green", "blue", "tired", "hard", "soft", "transparent", "long", "short", "excellent", "noisy", "silent", "rare", "normal", "typical", "living", "clean", "glamorous", "fancy", "handsome", "lazy", "scary", "helpless", "skinny", "melodic", "silly", "kind", "brave", "nice", "ancient", "modern", "young", "sweet", "wet", "cold", "dry", "heavy", "industrial", "complex", "accurate", "awesome", "shiny", "cool", "glittering", "fake", "unreal", "naked", "intelligent", "smart", "curious", "strange", "unique", "empty", "gray", "saturated", "blurry", "tropical", "erratic", "frozen", "relativistic", "monster", "monolithic", "lost"
};
String[] nou = {
"forest", "tree", "flower", "sky", "grass", "mountain", "car", "computer", "man", "woman", "dog", "elephant", "ant", "road", "butterfly", "phone", "computer program", "grandma", "school", "bed", "mouse", "keyboard", "bicycle", "spaghetti", "drink", "cat", "t-shirt", "candy", "wall", "poster", "airport", "bridge", "road", "river", "beach", "sculpture", "piano", "guitar", "fruit", "banana", "apple", "strawberry", "rubber band", "saxophone", "window", "linux computer", "skate board", "piece of paper", "photograph", "painting", "hat", "space", "fork", "mission", "goal", "project", "social network", "highway", "database", "patent", "copyright", "star", "planet", "galaxy", "universe", "compiler", "word", "sentence", "friend", "ignorance", "instinct", "surviver", "world", "powerpoint"
};
String[] pre = {
"under", "in front of", "above", "behind", "near", "following", "inside", "besides", "like", "beneath", "against", "into", "beyond", "considering", "without", "with", "towards", "close to"
};
String[] ver = {
"sings", "dances", "danced", "will run", "runs", "will walk", "walks", "flies", "is flying", "moves", "glows", "glowed", "spins", "promised", "hugs", "will hug", "cheats", "waits", "waited", "studied", "swims", "travels", "traveled", "will travel", "plays", "played", "will play", "enjoys", "illuminates", "arises", "eats", "drinks", "calculated", "kissed", "faded", "listened", "navigates", "responds", "smiles", "succeeded", "wonders", "will survive", "exploded", "grew", "surfs", "rocks"
};
void print_word(String[] words) {
int r = int(random(words.length));
textSize(random(20, 40));
float w = textWidth(words[r]);
float x = random(40, width - w - 40);
text(words[r], x, y);
y = y + 25;
}
void doit() {
background(255);
y = 100;
print_word(art);
print_word(adj);
print_word(nou);
print_word(ver);
print_word(pre);
print_word(art);
print_word(adj);
print_word(nou);
}
void setup() {
size(400, 400);
background(255);
fill(#26ABDE);
doit();
}
void draw() {
}
void keyPressed() {
save(int(random(9999999)) + ".png");
}
void mousePressed() {
doit();
}