xxxxxxxxxx
36
let words = ["we", "wrote", "Anti-Oedipus", "together", "Since", "each", "of", "us", "was", "several", "there", "already", "quite", "a", "crowd", "Here", "have", "made", "use", "everything", "came", "within", "range", "what", "closest", "as", "well", "farthest", "away", "assigned", "clever", "pseudonyms", "prevent", "recognition", "Why", "kept", "own", "names", "Out", "habit", "purely", "make", "ourselves", "unrecognizable", "in", "turn", "render", "perceptible", "not", "ourselves", "but", "makes", "act", "feel", "and", "think", "Also", "because", "it's", "nice", "talk", "like", "everybody", "else", "say", "sun", "rises", "when", "knows", "only", "manner", "speaking", "reach", "point", "no", "longer", "I", "important", "whether", "will", "know", "his", "been", "aided", "inspired", "multiplied", "A", "book", "neither", "object", "nor", "subject", "it", "variously", "for", "matters", "very", "different", "dates", "speeds", "attribute", "subject", "overlook", "working", "exteriority", "relations", "fabricate", "beneficent", "God", "explain", "geological", "movements", "all", "things", "lines", "articulation", "segmentarity", "strata", "territories", "flight", "movement", "deterritorialization", "destratification", "Comparative", "rates", "flow", "these", "produce", "phenomena", "relative", "slowness", "viscosity", "or", "contrary", "acceleration", "rupture", "this", "measurable", "constitutes", "an", "assemblage", "kind", "such", "unattributable", "multiplicity-but", "don't", "yet", "multiple", "entails", "elevated", "status", "substantive", "One", "side", "machinic", "faces", "which", "doubtless", "organism", "signing", "totality", "determination", "attributable", "also", "facing", "body", "without", "organs", "continually", "dismantling", "causing", "asignifying", "particles", "pure", "intensities", "pass", "circulate", "attributing", "itself", "subjects", "leaves", "with", "nothing", "more", "name", "trace", "What", "Several", "depending", "nature", "considered", "particular", "grade", "density", "possibility", "converging", "on", "plane", "consistency", "assuring", "selection", "Here", "elsewhere", "units", "measure", "essential", "quantify", "writing", "There", "difference", "about", "made", "connection", "other", "than", "relation", "exist", "through", "outside", "itself", "little", "machine", "relation", "also", "literary", "war", "love", "revolutionary", "etc.", "abstract", "sweeps", "them", "along", "been", "criticized", "overquoting", "authors", "But", "one", "writes", "question", "is", "plugged", "into", "must", "work", "Kleist", "mad", "Kafka", "most", "extraordinary", "bureaucratic", "became", "animal", "plant", "certainly", "mean", "literarily", "Is", "first", "voice", "ideology", "strata", "segmentarities", "intensities", "various", "bodies", "construction", "selection", "plane", "case", "ask", "signified", "look", "anything", "understand", "functions", "connection", "things", "transmit", "inserted", "metamorphosed", "exists", "relation", "measurable", "literary"];
let wordPositions = []; // Store positions of each word
let filler;
let button;
function setup() {
createCanvas(windowWidth, windowHeight); // Create canvas
background(255); // Set background color to white
button = createButton("Change word");
filler = createP("Click the button");
button.mousePressed(newWord);
}
function draw() {
// Display words at their respective positions
for (let i = 0; i < wordPositions.length; i++) {
fill(0); // Set text color to black
text(words[i], wordPositions[i].x, wordPositions[i].y); // Display word at position
}
}
function newWord() {
let randomWord = random(words); // Get random word from the array
let randomX = random(width); // Get random X position
let randomY = random(height); // Get random Y position
wordPositions.push(createVector(randomX, randomY)); // Store position of new word
filler.html(randomWord); // Display random word
// Display the random word at the randomly chosen position
fill(0); // Set text color to black
text(randomWord, randomX, randomY); // Display word at random position
}