xxxxxxxxxx
40
let myFont;
function preload() {
myFont = loadFont('AlteHaasGroteskRegular.ttf');
}
function setup() {
createCanvas(windowWidth, 1500);
//background(240,200,54);
background (255, 204, 0);
//cursor('penzwaardmouse.png')
let s = 'Maak een mooie tekening voor de baby met je zwaardpen. Die kan opgehangen worden aan het bedje en zo de baby helpen om te vechten tegen de kriebelbeestjes. Gebruik je vinger om te tekenen op het scherm.';
fill(255,255,255);
textSize(25);
textFont(myFont);
//textAlign(CENTER)
text(s, windowWidth/12, windowHeight/12, windowWidth/1.2, windowHeight);
button = createImg('knopterug.png');
button.size(130,68.3);
button.style("font-family","Helvetica");
button.style("Size","50");
button.style("color","#000");
button.position(50, 520);
button.mousePressed(changeBH);
}
function changeBH() {
window.open("https://editor.p5js.org/Rose_Thys/present/cSzowFj1d", "_self").close();
}
//function draw() {
//gif_createImg.position(5,5);
//}