xxxxxxxxxx
29
//got a wierd erro the first time i ran this "Script error. (: line 0)"
//then i saw i had to turn off plain text in the accessibility settings in //github
//and it went away :)
let canvas;
let bgColor;
let button;
function setup() {
canvas = createCanvas(400, 400);
bgColor = color( random(255), random(255), random(255) );
createP('');
button = createButton(" omg this is taking too long why i am soo dum?");
button.mousePressed(changeColor);
createSlider(10,100,42);
}
function changeColor(){
bgColor = color( random(255), random(255), random(255) );
}
function draw() {
background(bgColor);
fill(255,0,175);
rect (100,100, 50,50);
}