xxxxxxxxxx
92
// homage to Marc Adrian's "Computer Texts";
// see Funkhouser, Chris. _Prehistoric Digital
// Poetry: An Archaeology of Forms, 1959-1995_.
// University of Alabama Press, 2007, p. 96.
let words = ['blood',
'bloody',
'boobs',
'book',
'boom',
'boost',
'boot',
'borrow',
'bottom',
'color',
'combo',
'comfort',
'common',
'condom',
'control',
'cook',
'cool',
'cooldown',
'cotton',
'doctor',
'door',
'downtown',
'flood',
'floor',
'follow',
'food',
'fool',
'foot',
'forgot',
'good',
'honor',
'hood',
'hook',
'horror',
'logo',
'look',
'loop',
'loot',
'mood',
'moon',
'motor',
'onto',
'photo',
'pool',
'poop',
'poor',
'proof',
'robot',
'roof',
'room',
'root',
'school',
'shoot',
'smooth',
'solo',
'soon',
'spoon',
'stood',
'tomorrow',
'too',
'took',
'tool',
'tooth',
'troops',
'wood',
'zoom']
function setup() {
noCanvas();
shuffle(words, true);
let gridSize = 6;
let spacing = windowWidth / gridSize;
for (let i = 0; i < gridSize*gridSize; i++) {
if (random() < 0.25) {
let d = createDiv(words[i]);
d.position((i%gridSize)*spacing,
int(i/gridSize)*spacing);
d.size(200, 200);
let fontsize = random(8, 100);
d.style('font-size', fontsize+'px');
d.style('letter-spacing', '0.1em');
d.style('font-weight', 'bold');
d.style('text-align', 'center');
d.style('font-family', 'sans-serif');
}
}
}