let colors=['#d30c7b','#e9564c','#ff9f1c','#ffb787','#ffc3bc','#fecef1','#d2dde9','#a6ece0','#57aab4','#086788']
let beginnings=['tor','dia', 'kor', 'dolo', 'mala', 'py', 'gy', 'cal', 'co', 'pa', 'ammo', 'car', 'kao', 'ob', 'bor', 'cul', 'bari', 'raphe', 'solu']
let middles=['qu', 'm', 'ch', 'r', 'p', 'c', 'b', 'l', 'nel', 'len', 'sid', 'n', 'lin']
let suffixes=['ite', 'ine', 'ate', 'oius', 'ire', 'idot', 'ian', 'ond', 'ium', 'alt']
let placeNames=['Kessel, New Hampshire', 'Reuland, Luxembourg', 'Johnson, New Mexico', 'Keweenaw Penn., Michigan', 'Tsegi, Navajo Nation',
'Isle of Skye, Scotland', 'Alcazar de San Juan, Spain', 'Asanko Mine, Ghana', 'Muishond, South Africa', 'Las Llamas son lindas, Chile','Çoji jaxʙandī, Tajikistan', 'Hattown, Alberta', 'Deadhorse, Alaska', 'Woolloomooloo, NSW Australia',
'Pas Un Croissant, France', 'Destruction Bay, Yukon', 'Kwete Kuzosetsa, Botswana', 'Drugo Mjesto, Croatia', 'Ika hōra khāna, India' , 'Pakauḍā yama, Nepal']
font= loadFont('CutiveMono-Regular.ttf');
createCanvas(windowWidth, windowHeight);
g= createGraphics(width, height)
for(let y=height/5; y<height; y+=width/5){
for(let x=width/5; x<width; x+=width/5){
colorPicker=floor(random(colors.length+1))
let pt1=createVector(0, 0)
let pt2=createVector(cos(a)*s, sin(a)*s)
drawingContext.shadowOffsetX = -6;
drawingContext.shadowOffsetY = -5;
drawingContext.shadowBlur = 10;
drawingContext.shadowColor = '#36454F';
let label=random(beginnings)+random(middles)+random(suffixes)
let place= random(placeNames)
text(place, x-s, y+s*2+20)
function crystalize(p1, p2, s){
filler=color(random(currentColors))
theta= atan2(p2.y - p1.y, p2.x -p1.x)
p3a= theta+ random(PI-PI/3)
let xer = constrain(p1.x+cos(p3a)*s, -s*4, s*4)
let yer= constrain(p1.y+sin(p3a)*s, -s*4, s*2)
p3=createVector(xer, yer)
g.triangle(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y)