xxxxxxxxxx
let content = "You can rotate, crop, sign and draw on PDFs and images directly on your Mac desktop — and even on your iPhone or iPad. To get started with Markup, select a file on your Mac, press the Space bar, then click the Markup icon.\n\nWith Stacks, the files on your desktop are automatically organised into related groups — so you can find that important spreadsheet whenever you need it. Just click the desktop, then choose View > Use Stacks.";
// Umbrüche sind als \n (break) im Text zu deklarieren
let sora;
// Font laden
function preload() {
sora = loadFont('Sora-SemiBold.ttf');
}
function setup() {
createCanvas(1920, 1080);
textFont(sora); // Font setzen
}
function draw() {
background(220);
// Euer Code
noFill();
stroke(50);
for (x=0; x<width; x+=1+mouseX/2)
ellipse(x, height/2, sin(millis()/1000)*400, mouseY+sin(millis()/1000)*400);
// Wort
textSize(250);
textAlign(CENTER, CENTER);
fill(120);
//noStroke();
text("tools", width/2, height/2);
// Hilfe Text
fill(0);
textSize(32);
text("?", 15, 20);
if (mouseX > 0 && mouseX < 30 && mouseY > 0 && mouseY < 30) {
cursor(HAND);
text(content, 20, 40, 500, height);
//text(content, 20, 40, width-20, height-20);
}
else {
cursor(ARROW);
}
}
// Bild speichern
function keyPressed() {
if (key == "s") {
save('tool_grafik.png');
}
}