var inputElement,sliderElement,buttonElement,colorPickerElement
createCanvas(windowWidth, windowHeight);
inputElement = createInput("WRITE HOW YOU FEEL")
inputElement.position(50,50)
sliderElement = createSlider(10,200,60,0.01)
sliderElement.position(50,100)
buttonElement = createButton("START")
buttonElement.position(50,150)
buttonElement.mousePressed(goCrazy)
colorPickerElement = createColorPicker("#F9FD00")
colorPickerElement.position(50,200)
radioElement = createRadio()
radioElement.position(50,250)
radioElement.option("rotate")
radioElement.style("background-color","white")
let txt = inputElement.value()
let sliderValue = sliderElement.value()
let selectedColor = colorPickerElement.value()
let mode = radioElement.value()
if (txt=="tree"){txt="π"}
if (txt=="smile"){txt="π"}
if (txt=="Huimin"){txt="πΌπ»ββπ―ππ»πΊπ¦π¦ππ¦π·"}
if (txt=="θθ¦"){txt="π π‘"}
let textLength = textWidth(txt)+10
for(var o=0;o<height;o+=60){
for(var i=0;i<width;i+=textLength){
translate(i+random(-randomValue,randomValue),
o+random(-randomValue,randomValue))
rotate(sin(frameCount/20 +o/10))
scale(sin(frameCount/20 +o/10)+1)