Right-click the link to take you to a random sketch, click to randomize again
xxxxxxxxxx
let id;
function setup() {
createCanvas(windowWidth, windowHeight);
textSize(50);
textAlign(CENTER, CENTER);
id = round(random(9, 2174927));
background(0);
}
function draw() {
fill(color(255, 125, 125));
text("Please show the sketches that you find cool some love <3", width/2, height/4);
let n = createA(`http://openprocessing.org/sketch/${id}`, `Click Here xx`, '_blank');
n.position(width/2, height/2);
describe('Click on the link to get you to a random sketch');
}
function mouseClicked() {
id = round(random(9, 2174944));
//createA(`http://openprocessing.org/sketch/${id}`, `Click Here xx`, '_touch');
}